summaryrefslogtreecommitdiff
path: root/include/vcl/InterimItemWindow.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-25 11:50:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-26 16:08:39 +0100
commitf689952f899d65939711ad9647d64e25d14bc73e (patch)
tree29814ea05d3b8ea1ab6a97d2409e9e7bd28eb2ea /include/vcl/InterimItemWindow.hxx
parent70b3bdd4028431690f15d95f4d03e5df6f97c1b7 (diff)
add a way to invalidate the InterimItemWindow child contents
Change-Id: Id7bbf6443f25eee7745123f127cd9d6424a684b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106599 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/InterimItemWindow.hxx')
-rw-r--r--include/vcl/InterimItemWindow.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/InterimItemWindow.hxx b/include/vcl/InterimItemWindow.hxx
index d6b47d33cade..08860c50244a 100644
--- a/include/vcl/InterimItemWindow.hxx
+++ b/include/vcl/InterimItemWindow.hxx
@@ -22,6 +22,9 @@ public:
virtual void Resize() override;
virtual Size GetOptimalSize() const override;
+ // throw away cached size request of child so GetOptimalSize will
+ // fetch it anew
+ void InvalidateChildSizeCache();
virtual void StateChanged(StateChangedType nStateChange) override;
virtual void queue_resize(StateChangedType eReason = StateChangedType::Layout) override;
virtual void GetFocus() override;