summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/navipi.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-30 09:14:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-30 09:14:25 +0100
commit1e468ed58994f4eb75519cb52111ed942fbc7377 (patch)
treefde4ceb7d0e295b407960412a4c918d19b0f51de /sw/source/uibase/utlui/navipi.cxx
parent1616565f1232f31d1e0fa2a3316d63eadd8e0e28 (diff)
Resolves: tdf#93187 gtk3 spin box element in navigator cut-off
Change-Id: Ifc1f226a38328e6ce02d3181917dd0530f320914
Diffstat (limited to 'sw/source/uibase/utlui/navipi.cxx')
-rw-r--r--sw/source/uibase/utlui/navipi.cxx2
1 files changed, 2 insertions, 0 deletions
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);