From 1e468ed58994f4eb75519cb52111ed942fbc7377 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 30 Sep 2015 09:14:04 +0100 Subject: Resolves: tdf#93187 gtk3 spin box element in navigator cut-off Change-Id: Ifc1f226a38328e6ce02d3181917dd0530f320914 --- sw/source/uibase/utlui/navipi.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw/source/uibase/utlui/navipi.cxx') diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index 5a0e32e2b1c6..32fe757f25ce 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -699,6 +699,8 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings, Rectangle aSecondRect = aContentToolBox->GetItemRect(FN_SELECT_HEADER); Size aItemWinSize( aFirstRect.Left() - aSecondRect.Left(), aFirstRect.Bottom() - aFirstRect.Top() ); + Size aOptimalSize(pEdit->get_preferred_size()); + aItemWinSize.Width() = std::max(aItemWinSize.Width(), aOptimalSize.Width()); pEdit->SetSizePixel(aItemWinSize); aContentToolBox->InsertSeparator(4); aContentToolBox->InsertWindow( FN_PAGENUMBER, pEdit, ToolBoxItemBits::NONE, 4); -- cgit