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

gtk3: get right bounds for scrollbar thumb with no arrow buttons

Change-Id: Ie96ccd3b3b0e2bebf10496f91d110d9a1a62e133
üst cbe944e3
......@@ -1299,11 +1299,15 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
((nPart==PART_BUTTON_LEFT) || (nPart==PART_BUTTON_RIGHT) ||
(nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ) )
{
aEditRect = NWGetScrollButtonRect( nPart, rControlRegion );
if (!aEditRect.GetWidth())
aEditRect.Right() = aEditRect.Left() + 1;
if (!aEditRect.GetHeight())
aEditRect.Bottom() = aEditRect.Top() + 1;
rNativeBoundingRegion = NWGetScrollButtonRect( nPart, rControlRegion );
rNativeContentRegion = rNativeBoundingRegion;
if (!rNativeContentRegion.GetWidth())
rNativeContentRegion.Right() = rNativeContentRegion.Left() + 1;
if (!rNativeContentRegion.GetHeight())
rNativeContentRegion.Bottom() = rNativeContentRegion.Top() + 1;
return true;
}
if( (nType == CTRL_MENUBAR) && (nPart == PART_ENTIRE_CONTROL) )
{
......
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