summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-27 15:42:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-27 17:12:08 +0100
commit4679d6b9c3975c322cf84bcfca6dbfbfd1155981 (patch)
treecdfeea6ca87571f57bb3ef447aa59fd6caaad9af /vcl
parent9b6a6705f756467b12d9ff508e572b1bc279c394 (diff)
gtk3: set max spin box height before determining rect
Change-Id: Ic7e2c3a76abf658cc4e639772e05c83851c1da71
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 4406be246e87..9f0ea7671aa1 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -1079,7 +1079,8 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
((nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ||
(nPart==PART_SUB_EDIT)) )
{
- aEditRect = NWGetSpinButtonRect( nPart, rControlRegion );
+ Rectangle aControlRegion(AdjustRectForTextBordersPadding(mpSpinStyle, rValue.getNumericVal(), rControlRegion));
+ aEditRect = NWGetSpinButtonRect(nPart, aControlRegion);
}
else if ( (nType==CTRL_COMBOBOX) &&
((nPart==PART_BUTTON_DOWN) || (nPart==PART_SUB_EDIT)) )