diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 15:42:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 17:12:08 +0100 |
commit | 4679d6b9c3975c322cf84bcfca6dbfbfd1155981 (patch) | |
tree | cdfeea6ca87571f57bb3ef447aa59fd6caaad9af /vcl | |
parent | 9b6a6705f756467b12d9ff508e572b1bc279c394 (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.cxx | 3 |
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)) ) |