svx/source/dialog/srchdlg.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 22a2997da8d7ac0ddc3b2d8cea38cd6cf80d2e29
Author:     Andras Timar <[email protected]>
AuthorDate: Sun Feb 15 11:17:01 2026 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Feb 16 09:37:14 2026 +0100

    fix Find and Replace dialog overlap with gen backend
    
    Resize the dialog after toggling Replace controls visibility,
    since the VCL gen backend does not auto-resize the dialog when
    widgets are shown/hidden (unlike GTK3).
    
    Change-Id: If398416558c30f6346299d6312228d4fb435b8d6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199397
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index b602f0cb7ae0..b6b3f2444169 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -390,6 +390,8 @@ void SvxSearchDialog::SetReplaceCtrlsVisible(bool bVisible)
     m_xReplaceFrame->set_visible(bVisible);
     m_xReplaceBtn->set_visible(bVisible);
     m_xReplaceAllBtn->set_visible(bVisible);
+
+    m_xDialog->resize_to_request();
 }
 
 void SvxSearchDialog::Construct_Impl()

Reply via email to