[Libreoffice-commits] core.git: starmath/source

José Guilherme Vanz vanz at libreoffice.org
Thu Nov 7 12:45:55 CET 2013


 starmath/source/edit.cxx |   10 ++++++++++
 1 file changed, 10 insertions(+)

New commits:
commit 67311738157bced7b49e94b24845091995edb142
Author: José Guilherme Vanz <vanz at libreoffice.org>
Date:   Thu Nov 7 02:53:09 2013 -0200

    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 at gmail.com>
    Tested-by: Marcos Souza <marcos.souza.org at gmail.com>

diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index e95e85f..ee8e05d 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;


More information about the Libreoffice-commits mailing list