From 4c5e4c47dec8dc9741e1f5c401b8d23f0cfc8e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 10 Feb 2013 21:47:54 +0000 Subject: [PATCH] update outputsize on parent resize and recalculate bounds Change-Id: I6180f55137126d50cd6a4b60702c789d4b72a953 --- svtools/source/contnr/svimpbox.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 5d4dd0276f79..4888fbd30652 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -1315,8 +1315,8 @@ void SvImpLBox::InitScrollBarBox() void SvImpLBox::Resize() { - Size aSize( pView->Control::GetOutputSizePixel()); - if( aSize.Width() <= 0 || aSize.Height() <= 0 ) + aOutputSize = pView->Control::GetOutputSizePixel(); + if( aOutputSize.Width() <= 0 || aOutputSize.Height() <= 0 ) return; nFlags |= F_IN_RESIZE; InitScrollBarBox(); @@ -1324,7 +1324,7 @@ void SvImpLBox::Resize() if( pView->GetEntryHeight()) { AdjustScrollBars( aOutputSize ); - FillView(); + UpdateAll(false); } // HACK, as in floating and docked windows the scrollbars might not be drawn // correctly/not be drawn at all after resizing!