summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/dialog.hxx1
-rw-r--r--vcl/source/window/dialog.cxx11
2 files changed, 12 insertions, 0 deletions
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx
index 0ad945815be5..9048d0e41dbe 100644
--- a/include/vcl/dialog.hxx
+++ b/include/vcl/dialog.hxx
@@ -160,6 +160,7 @@ public:
bool IsModalInputMode() const { return mbModalMode; }
void GrabFocusToFirstControl();
+ virtual void Resize() override;
};
class VCL_DLLPUBLIC ModelessDialog : public Dialog
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index f08a22d188f9..73674200d914 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -1336,6 +1336,17 @@ void Dialog::queue_resize(StateChangedType eReason)
SystemWindow::queue_resize(eReason);
}
+void Dialog::Resize()
+{
+ SystemWindow::Resize();
+
+ // inform LOK clients
+ if (!comphelper::LibreOfficeKit::isDialogPainting() && mpDialogRenderable && !maID.isEmpty())
+ {
+ mpDialogRenderable->notifyDialog(maID, "invalidate", nullptr);
+ }
+}
+
bool Dialog::set_property(const OString &rKey, const OString &rValue)
{
if (rKey == "border-width")