summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Guilherme Vanz <vanz@libreoffice.org>2013-11-07 02:53:09 -0200
committerMarcos Souza <marcos.souza.org@gmail.com>2013-11-07 05:45:26 -0600
commit67311738157bced7b49e94b24845091995edb142 (patch)
treeac6e2b29b67ac6adcec4ad43d16ff6f90ecc0660
parentc980158a8286d5f583bd9d844aed2018bea310ea (diff)
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 Change-Id: I658f7a4182578e49644ae6de281f221499d61ad3 Reviewed-on: https://gerrit.libreoffice.org/6602 Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
-rw-r--r--starmath/source/edit.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index e95e85fe48f8..ee8e05d59940 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -1033,7 +1033,17 @@ void SmEditWindow::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.
+ */
+ pVScrollBar->Hide();
+ pHScrollBar->Hide();
pEditView->InsertText(string);
+ AdjustScrollBars();
+ pVScrollBar->Show();
+ pHScrollBar->Show();
// Remember start of the selection and move the cursor there afterwards.
aSelection.nEndPara = aSelection.nStartPara;