diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-27 12:17:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-27 15:03:53 +0100 |
commit | 5d388b94735e34ba445d65e1d5030a646aad7dbe (patch) | |
tree | 8a2a5683a1718b0039d22edcc38dfcce3c82e206 /include | |
parent | 4bd1cf9c1aece1bb405c157e6e6b2444517a27ae (diff) |
Related: tdf#146648 let SetWindowState size trump the initial layout pref size
so a size can be restored from config and overrule the initial layout
size which is calculated on first show.
for existing cases, this changes behaviour if a dialog is shown,
hidden, layout changed and then reshown and the new layout is smaller
than the old layout. But that should align the behaviour of vcl
layout-enabled widgets with gtk ones.
Change-Id: I526f16dba91ccfd6d52c63a17e5dc51bf79750a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129037
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/syswin.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/syswin.hxx b/include/vcl/syswin.hxx index 0c35073aec09..71661908fd86 100644 --- a/include/vcl/syswin.hxx +++ b/include/vcl/syswin.hxx @@ -103,6 +103,7 @@ private: bool mbHideBtn; bool mbSysChild; bool mbIsCalculatingInitialLayoutSize; + bool mbInitialLayoutSizeCalculated; bool mbPaintComplete; MenuBarMode mnMenuBarMode; sal_uInt16 mnIcon; |