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

Thomas Arnhold thomas at arnhold.org
Wed Nov 13 00:54:42 PST 2013


 starmath/inc/ElementsDockingWindow.hxx    |    1 +
 starmath/source/ElementsDockingWindow.cxx |    8 ++++++++
 2 files changed, 9 insertions(+)

New commits:
commit e667062310ed327dc0a9d338a9e26dc0e2ce865f
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Wed Nov 13 09:30:08 2013 +0100

    fdo#69112 - Detaching the docking window leads to a wrong sized window
    
    Just fix it by setting an appropriate minimum window size.
    
    It's set to 100px because this is approx. one column/row of elements.
    
    Now, after entering the floating mode the height of the window is 100px.
    Maybe this needs some more adjustment, but it's not 0px anymore.
    
    Change-Id: I7b14d001bbca1d1a5297f875fdf424beefaed85a

diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx
index ce17664..66b410c 100644
--- a/starmath/inc/ElementsDockingWindow.hxx
+++ b/starmath/inc/ElementsDockingWindow.hxx
@@ -180,6 +180,7 @@ public:
     ~SmElementsDockingWindow();
 
     virtual void EndDocking( const Rectangle& rReactangle, sal_Bool bFloatMode);
+    virtual void ToggleFloatingMode();
 };
 
 class SmElementsDockingWindowWrapper : public SfxChildWindow
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 196ee26..cda53ef 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -605,6 +605,14 @@ SmElementsDockingWindow::~SmElementsDockingWindow ()
 {
 }
 
+void SmElementsDockingWindow::ToggleFloatingMode()
+{
+    SfxDockingWindow::ToggleFloatingMode();
+
+    if (GetFloatingWindow())
+        GetFloatingWindow()->SetMinOutputSizePixel( Size(100, 100) );
+}
+
 void SmElementsDockingWindow::EndDocking( const Rectangle& rReactangle, sal_Bool bFloatMode)
 {
     SfxDockingWindow::EndDocking(rReactangle, bFloatMode);


More information about the Libreoffice-commits mailing list