summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/edit.hxx3
-rw-r--r--starmath/source/edit.cxx20
2 files changed, 0 insertions, 23 deletions
diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx
index 3a77af082008..c89c23bd599e 100644
--- a/starmath/inc/edit.hxx
+++ b/starmath/inc/edit.hxx
@@ -136,9 +136,6 @@ public:
void SelPrevMark();
void DeleteEditView();
-
- void HideScrollbars();
- void ShowScrollbars();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 555e4d8442e3..a02ad7436500 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -828,18 +828,6 @@ void SmEditWindow::InsertText(const OUString& rText)
mxTextControl->InsertText(rText);
}
-void SmEditWindow::HideScrollbars()
-{
- mxScrolledWindow->set_vpolicy(VclPolicyType::NEVER);
- mxScrolledWindow->set_hpolicy(VclPolicyType::NEVER);
-}
-
-void SmEditWindow::ShowScrollbars()
-{
- mxScrolledWindow->set_vpolicy(VclPolicyType::ALWAYS);
- mxScrolledWindow->set_hpolicy(VclPolicyType::ALWAYS);
-}
-
void SmEditTextWindow::InsertText(const OUString& rText)
{
EditView* pEditView = GetEditView();
@@ -871,15 +859,7 @@ void SmEditTextWindow::InsertText(const OUString& rText)
if (aSelection.nStartPos > 0 && aCurrentFormula[nStartIndex - 1] != ' ')
string = " " + string;
- /*
- fdo#65588 - Elements Dock: Scrollbar moves into input window
- This change "solves" the visual problem. But I don't think so
- this is the best solution.
- */
- mrEditWindow.HideScrollbars();
pEditView->InsertText(string);
- mrEditWindow.AdjustScrollBars();
- mrEditWindow.ShowScrollbars();
// Remember start of the selection and move the cursor there afterwards.
aSelection.nEndPara = aSelection.nStartPara;