mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 01:27:30 +09:00
Convert the button rect to device coordinates correctly instead of casting CSS coordinates.
This should the correct fix for #559
This commit is contained in:
parent
d84fe69150
commit
f5d85dbba6
1 changed files with 3 additions and 1 deletions
|
|
@ -14633,7 +14633,9 @@ nsGlobalWindow::NotifyDefaultButtonLoaded(Element& aDefaultButton,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LayoutDeviceIntRect buttonRect =
|
LayoutDeviceIntRect buttonRect =
|
||||||
LayoutDeviceIntRect::FromUnknownRect(frame->GetScreenRect());
|
LayoutDeviceIntRect::FromAppUnitsToNearest(
|
||||||
|
frame->GetScreenRectInAppUnits(),
|
||||||
|
frame->PresContext()->AppUnitsPerDevPixel());
|
||||||
|
|
||||||
// Get the widget rect in screen coordinates.
|
// Get the widget rect in screen coordinates.
|
||||||
nsIWidget *widget = GetNearestWidget();
|
nsIWidget *widget = GetNearestWidget();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue