summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-19 11:58:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-19 16:54:35 +0200
commitf3bb88b67b350900f60934e0f7bd550fa4fd47ec (patch)
treefe84002784c9a9b82c2de05f443f800b6db4cc5a /starmath/source/edit.cxx
parent20e8e09a40f5b82992655c565207f0537fc11d24 (diff)
remove apparently no longer necessary scrollbar hide/show hack
before using weldeditview a revert of: commit 67311738157bced7b49e94b24845091995edb142 Date: Thu Nov 7 02:53:09 2013 -0200 fdo#65588 - Elements Dock: Scrollbar moves into input window and inserting multiple copies of the Taylor series rapidly shows a glitch with the horizontal scrollbar as described in command #6 but after using weldeditview reverting this doesn't show the broken behaviour so I'll drop this hackaround Change-Id: I09e654cbd05b08d8e46fbf1986dbc4959687ea02 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114264 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx20
1 files changed, 0 insertions, 20 deletions
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;