diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2018-03-14 14:55:05 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-27 12:23:00 +0200 |
commit | 65823d698e7fc7e236fe3fcd5f23f0fe02a91b7e (patch) | |
tree | 23b00a4c334edf923ff45d994bd505fa9e510a4e /vcl/source/window | |
parent | 0d863ee8e701ab890ca44ac9e1364adec600bec6 (diff) |
lokdialog: Invalidate upon window size change
This problem can be seen with some of the dialogs like chart dialogs
where not all of the area which should be invalidated is invalidated.
The reason being that their container gets resized but not
lok-invalidated.
Change-Id: I12eb68e8644ca67b2666badb7b772b92a145c624
Reviewed-on: https://gerrit.libreoffice.org/51264
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
(cherry picked from commit b2428496de5cd579f4cdb0f149e2cebb8b12dd4d)
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/window2.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 4e38bcaba259..4c150b5e0009 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -1386,6 +1386,12 @@ void Window::queue_resize(StateChangedType eReason) if (pBorderWindow) pBorderWindow->Resize(); } + + if (VclPtr<vcl::Window> pParent = GetParentWithLOKNotifier()) + { + if (GetParentDialog()) + LogicInvalidate(nullptr); + } } namespace |