diff options
-rw-r--r-- | sfx2/source/dialog/mgetempl.cxx | 1 | ||||
-rw-r--r-- | sw/source/ui/chrdlg/chardlg.cxx | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index c3c249ada7df..b306b477dc93 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -70,6 +70,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf { m_xNameRo->set_size_request(m_xNameRw->get_preferred_size().Width(), -1); m_xFollowLb->make_sorted(); + // tdf#120188 like SwCharURLPage limit the width of the style combos const int nMaxWidth(m_xFollowLb->get_approximate_digit_width() * 50); m_xFollowLb->set_size_request(nMaxWidth , -1); m_xBaseLb->make_sorted(); diff --git a/sw/source/ui/chrdlg/chardlg.cxx b/sw/source/ui/chrdlg/chardlg.cxx index c7a7e84a413c..0785ccbf3457 100644 --- a/sw/source/ui/chrdlg/chardlg.cxx +++ b/sw/source/ui/chrdlg/chardlg.cxx @@ -147,6 +147,11 @@ SwCharURLPage::SwCharURLPage(TabPageParent pParent, const SfxItemSet& rCoreSet) , m_xNotVisitedLB(m_xBuilder->weld_combo_box_text("unvisitedlb")) , m_xCharStyleContainer(m_xBuilder->weld_widget("charstyle")) { + // tdf#120188 like SfxManageStyleSheetPage limit the width of the style combos + const int nMaxWidth(m_xVisitedLB->get_approximate_digit_width() * 50); + m_xVisitedLB->set_size_request(nMaxWidth , -1); + m_xNotVisitedLB->set_size_request(nMaxWidth , -1); + const SfxPoolItem* pItem; SfxObjectShell* pShell; if(SfxItemState::SET == rCoreSet.GetItemState(SID_HTML_MODE, false, &pItem) || |