summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-06-02 03:56:28 +0200
committerJan Holesovsky <kendy@suse.cz>2013-06-02 04:54:55 +0200
commitb441420e072a1f09098f89ed646e423c60e1895b (patch)
tree7fd8cbb22c018c4c038f6df3f2c5b82fbd4fe6bb
parent415b70061036e67e00786836856f7eeda8cea938 (diff)
sidebar: Don't overlap widgets in the .ui based panels.
Change-Id: I32c978188a38d54f2b05d40b5d47b9d5520f3cca
-rw-r--r--svx/source/sidebar/PanelLayout.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/sidebar/PanelLayout.cxx b/svx/source/sidebar/PanelLayout.cxx
index 03ff1305570d..568f151aad7c 100644
--- a/svx/source/sidebar/PanelLayout.cxx
+++ b/svx/source/sidebar/PanelLayout.cxx
@@ -26,6 +26,10 @@ Size PanelLayout::GetOptimalSize() const
void PanelLayout::setPosSizePixel(long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags)
{
+ Size aSize(GetOptimalSize());
+ nWidth = std::max(nWidth,aSize.Width());
+ nHeight = std::max(nHeight,aSize.Height());
+
Control::setPosSizePixel(nX, nY, nWidth, nHeight, nFlags);
if (isLayoutEnabled(this) && (nFlags & WINDOW_POSSIZE_SIZE))