mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 606061. The border on the download manager doesn't wrap all the way around. r=jimm a=blocking-final
This commit is contained in:
parent
dbca7cdb52
commit
9834eaf232
@ -2491,10 +2491,13 @@ void nsWindow::UpdatePossiblyTransparentRegion(const nsIntRegion &aDirtyRegion,
|
||||
margins.cxRightWidth = clientBounds.width - largest.XMost();
|
||||
margins.cyBottomHeight = clientBounds.height - largest.YMost();
|
||||
|
||||
// The minimum glass height must be the caption buttons height,
|
||||
// otherwise the buttons are drawn incorrectly.
|
||||
margins.cyTopHeight = PR_MAX(largest.y,
|
||||
nsUXThemeData::sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cy);
|
||||
if (mCustomNonClient) {
|
||||
// The minimum glass height must be the caption buttons height,
|
||||
// otherwise the buttons are drawn incorrectly.
|
||||
largest.y = PR_MAX(largest.y,
|
||||
nsUXThemeData::sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cy);
|
||||
}
|
||||
margins.cyTopHeight = largest.y;
|
||||
}
|
||||
|
||||
// Only update glass area if there are changes
|
||||
|
Loading…
Reference in New Issue
Block a user