summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-03 11:36:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-03 11:38:00 +0000
commitc3a4bfcb0b6191665e63440b99fbf57080bd5c56 (patch)
tree1f3e08b432ed34512dad52b61cbec03167071427 /vcl/source/window
parent2365ff9f02370d63aae3d5b04b90b3c1a58d1094 (diff)
Resolves: tdf#95700 index dialog cut off
queue_resize needs to invalidate the size cache even if there is a pending layout idle awaiting Change-Id: I6dba3d37fbb33125cc3f5d17aff6d2f7a3388654 (cherry picked from commit d40d756f4079a228035b5db346da50fe7aed0bd2)
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/syswin.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index e007a3182b01..a167c69957cc 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -1016,11 +1016,13 @@ const Link<SystemWindow&,void>& SystemWindow::GetCloseHdl() const
void SystemWindow::queue_resize(StateChangedType /*eReason*/)
{
- if (hasPendingLayout() || isCalculatingInitialLayoutSize())
- return;
if (!isLayoutEnabled())
return;
+ if (isCalculatingInitialLayoutSize())
+ return;
InvalidateSizeCache();
+ if (hasPendingLayout())
+ return;
maLayoutIdle.Start();
}