mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
stop native listboxes from drawing outside their frame. part 1 of the fix for this bug. b=382142 sr=pav
This commit is contained in:
parent
0ec80ef4d4
commit
2a8c2af375
@ -258,6 +258,14 @@ nsNativeThemeCocoa::DrawFrame(CGContextRef cgContext, HIThemeFrameKind inKind,
|
||||
drawRect.size.width -= frameOutset * 2;
|
||||
drawRect.size.height -= frameOutset * 2;
|
||||
}
|
||||
else if (inKind == kHIThemeFrameListBox) {
|
||||
SInt32 frameOutset = 0;
|
||||
::GetThemeMetric(kThemeMetricListBoxFrameOutset, &frameOutset);
|
||||
drawRect.origin.x += frameOutset;
|
||||
drawRect.origin.y += frameOutset;
|
||||
drawRect.size.width -= frameOutset * 2;
|
||||
drawRect.size.height -= frameOutset * 2;
|
||||
}
|
||||
|
||||
#if DRAW_IN_FRAME_DEBUG
|
||||
CGContextSetRGBFillColor(cgContext, 0.0, 0.0, 0.5, 0.8);
|
||||
|
Loading…
Reference in New Issue
Block a user