diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-19 11:58:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-19 16:54:35 +0200 |
commit | f3bb88b67b350900f60934e0f7bd550fa4fd47ec (patch) | |
tree | fe84002784c9a9b82c2de05f443f800b6db4cc5a /starmath | |
parent | 20e8e09a40f5b82992655c565207f0537fc11d24 (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')
-rw-r--r-- | starmath/inc/edit.hxx | 3 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 20 |
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; |