Bug 1118862 - Fix simulator window on Retina screens. r=ochameau

This commit is contained in:
J. Ryan Stinnett 2015-01-15 13:38:00 -05:00
parent 76ea8c7b9f
commit 72310a0d5d

View File

@ -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