From e667062310ed327dc0a9d338a9e26dc0e2ce865f Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Wed, 13 Nov 2013 09:30:08 +0100 Subject: 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 --- starmath/source/ElementsDockingWindow.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'starmath/source') 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); -- cgit