Kaydet (Commit) b441420e authored tarafından Jan Holesovsky's avatar Jan Holesovsky

sidebar: Don't overlap widgets in the .ui based panels.

Change-Id: I32c978188a38d54f2b05d40b5d47b9d5520f3cca
üst 415b7006
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment