Kaydet (Commit) 4679d6b9 authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: set max spin box height before determining rect

Change-Id: Ic7e2c3a76abf658cc4e639772e05c83851c1da71
üst 9b6a6705
...@@ -1079,7 +1079,8 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar ...@@ -1079,7 +1079,8 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
((nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) || ((nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ||
(nPart==PART_SUB_EDIT)) ) (nPart==PART_SUB_EDIT)) )
{ {
aEditRect = NWGetSpinButtonRect( nPart, rControlRegion ); Rectangle aControlRegion(AdjustRectForTextBordersPadding(mpSpinStyle, rValue.getNumericVal(), rControlRegion));
aEditRect = NWGetSpinButtonRect(nPart, aControlRegion);
} }
else if ( (nType==CTRL_COMBOBOX) && else if ( (nType==CTRL_COMBOBOX) &&
((nPart==PART_BUTTON_DOWN) || (nPart==PART_SUB_EDIT)) ) ((nPart==PART_BUTTON_DOWN) || (nPart==PART_SUB_EDIT)) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment