summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx4
1 files changed, 4 insertions, 0 deletions
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();