mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1118862 - Fix simulator window on Retina screens. r=ochameau
This commit is contained in:
parent
76ea8c7b9f
commit
72310a0d5d
@ -132,6 +132,9 @@ window.addEventListener('ContentStart', function() {
|
||||
GlobalSimulatorScreen.width = width;
|
||||
GlobalSimulatorScreen.height = height;
|
||||
|
||||
Services.prefs.setCharPref('layout.css.devPixelsPerPx',
|
||||
ratio == 1 ? -1 : ratio);
|
||||
|
||||
// In order to do rescaling, we set the <browser> tag to the specified
|
||||
// width and height, and then use a CSS transform to scale it so that
|
||||
// it appears at the correct size on the host display. We also set
|
||||
@ -175,8 +178,6 @@ window.addEventListener('ContentStart', function() {
|
||||
style.transform +=
|
||||
' rotate(0.25turn) translate(-' + shift + 'px, -' + shift + 'px)';
|
||||
}
|
||||
|
||||
Services.prefs.setCharPref('layout.css.devPixelsPerPx', ratio);
|
||||
}
|
||||
|
||||
// Resize on startup
|
||||
|
Loading…
Reference in New Issue
Block a user