summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-17 12:27:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-17 13:05:30 +0000
commit2b34b48aacc10cbe256064f7606a114e232f3695 (patch)
tree30a1f59d6c4e087fdc57492af201c5f7e64ca4ea /sfx2
parent29ebb0ea9dd5371a4951ca55b88f7bebf85d04b9 (diff)
try to get reasonable sizes for docking windows
start docked, move to undocked start undocked, move to dock, back to undocked start undocked, with and without size saved in settings and restored Change-Id: I0bfdceb11aabdf9fdb855b97433b2af0532e4d03
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/dockwin.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index 80839b3cd101..24e2160344ec 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -1209,11 +1209,9 @@ void SfxDockingWindow::Initialize_Impl()
// trick: use VCL method SetWindowState to adjust position and size
pFloatWin->SetWindowState( pImp->aWinState );
Size aSize(pFloatWin->GetSizePixel());
- pFloatWin->set_width_request(aSize.Width());
- pFloatWin->set_height_request(aSize.Height());
// remember floating size for calculating alignment and tracking rectangle
- SetFloatingSize( pFloatWin->GetSizePixel() );
+ SetFloatingSize(aSize);
}
@@ -1221,8 +1219,6 @@ void SfxDockingWindow::Initialize_Impl()
pImp->bConstructed = true;
}
-
-
void SfxDockingWindow::FillInfo(SfxChildWinInfo& rInfo) const
/* [Description]