mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 938312 - Wrong orientation when starting browser in landscape mode. r=kats
This commit is contained in:
parent
82b47a5cb4
commit
8f4d132bf3
@ -1418,7 +1418,9 @@ void AsyncPanZoomController::UpdateCompositionBounds(const ScreenIntRect& aCompo
|
||||
if (aCompositionBounds.width && aCompositionBounds.height &&
|
||||
oldCompositionBounds.width && oldCompositionBounds.height) {
|
||||
float adjustmentFactor = float(aCompositionBounds.width) / float(oldCompositionBounds.width);
|
||||
mFrameMetrics.mZoom.scale *= adjustmentFactor;
|
||||
mFrameMetrics.mZoom.scale =
|
||||
clamped(mFrameMetrics.mZoom.scale * adjustmentFactor,
|
||||
mMinZoom.scale, mMaxZoom.scale);
|
||||
|
||||
// Repaint on a rotation so that our new resolution gets properly updated.
|
||||
RequestContentRepaint();
|
||||
|
Loading…
Reference in New Issue
Block a user