summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-11-13 09:30:08 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-11-13 09:54:10 +0100
commite667062310ed327dc0a9d338a9e26dc0e2ce865f (patch)
treea9d425dca8ea21ca6883d36cddc6955e9977a04e /starmath/source
parente4b993e95dd6a3c5ef174ab72fd11d33585ddf9a (diff)
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
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/ElementsDockingWindow.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 196ee266052f..cda53efe3421 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);