summaryrefslogtreecommitdiffstats
path: root/cui/source/tabpages/autocdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/autocdlg.cxx')
-rw-r--r--cui/source/tabpages/autocdlg.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 6573e3b43e0b..aa299fb3ca46 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -669,9 +669,17 @@ OfaAutocorrReplacePage::OfaAutocorrReplacePage(TabPageParent pParent,
, m_xNewReplacePB(m_xBuilder->weld_button("new"))
, m_xReplacePB(m_xBuilder->weld_button("replace"))
, m_xDeleteReplacePB(m_xBuilder->weld_button("delete"))
+ , m_xButtonBox(m_xBuilder->weld_container("buttonbox"))
{
sNew = m_xNewReplacePB->get_label();
sModify = m_xReplacePB->get_label();
+
+ // lock down the width of the button box to its max
+ // desired width
+ auto nMaxWidth = m_xButtonBox->get_preferred_size().Width();
+ m_xButtonBox->set_size_request(nMaxWidth, -1);
+ m_xReplacePB->hide();
+
// tdf#125348 set some small but fixed initial width size, final width will
// depend on the size of the entry boxes
m_xReplaceTLB->set_size_request(42, m_xReplaceTLB->get_height_rows(10));