[Libreoffice-commits] core.git: Branch 'libreoffice-7-1-1' - starmath/source

Rafael Lima (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 24 14:22:45 UTC 2021


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

New commits:
commit 1f5dfe691540d69665d417fd8c454d4980e9c1d6
Author:     Rafael Lima <rafael.palma.lima at gmail.com>
AuthorDate: Sat Feb 13 16:43:01 2021 +0100
Commit:     Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
CommitDate: Wed Feb 24 15:21:08 2021 +0100

    Resolves tdf#140221 auto-adjust Formula Editor width
    
    Currently the formula editor uses a fixed width that corresponds to about half the size of the display. This patch makes the formula editor auto adjust.
    
    Change-Id: I0cd6a6385b698fced96132a636df2d24c6c62cf1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110858
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Reviewed-by: Rafael Lima <rafael.palma.lima at gmail.com>
    Reviewed-by: Dante DM <dante19031999 at gmail.com>
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Tested-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>

diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index a425e20f4b0e..64d1fc34757e 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -294,6 +294,10 @@ void SmEditWindow::Resize()
 
     if (pEditView)
     {
+        // Resizes the edit engine to adjust to the size of the output area
+        const Size aSize( pEditView->GetOutputArea().GetSize() );
+        pEditView->GetEditEngine()->SetPaperSize(aSize);
+
         pEditView->SetOutputArea(AdjustScrollBars());
         pEditView->ShowCursor();
 


More information about the Libreoffice-commits mailing list