Bug 946172 - [Dialer] Call screen is broken with APZ turned on. r=mbrubeck

This commit is contained in:
Vivien Nicolas 2013-12-05 16:15:35 +01:00
parent ddecae52a4
commit c780ee4923
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@
*/
static const mozilla::LayoutDeviceToScreenScale kViewportMinScale(0.0f);
static const mozilla::LayoutDeviceToScreenScale kViewportMaxScale(10.0f);
static const mozilla::CSSIntSize kViewportMinSize(200, 223);
static const mozilla::CSSIntSize kViewportMinSize(200, 40);
static const mozilla::CSSIntSize kViewportMaxSize(10000, 10000);
static const int32_t kViewportDefaultScreenWidth = 980;

View File

@ -20,10 +20,10 @@
tests.push(function test1() {
SpecialPowers.pushPrefEnv(scaleRatio(1.0),
function() {
let info = getViewportInfo(800, 480);
let info = getViewportInfo(800, 80);
is(info.defaultZoom, 2.5, "initial zoom fits the displayWidth");
is(info.width, 320, "width is set explicitly");
is(info.height, 223, "height is at the absolute minimum");
is(info.height, 40, "height is at the absolute minimum");
is(info.autoSize, false, "width=device-width enables autoSize");
is(info.allowZoom, true, "zooming is enabled by default");
@ -40,10 +40,10 @@
SpecialPowers.pushPrefEnv(scaleRatio(1.5),
function() {
// With an explicit width in CSS px, the scaleRatio has no effect.
let info = getViewportInfo(800, 480);
let info = getViewportInfo(800, 80);
is(info.defaultZoom, 2.5, "initial zoom still fits the displayWidth");
is(info.width, 320, "width is still set explicitly");
is(info.height, 223, "height is still minimum height");
is(info.height, 40, "height is still minimum height");
nextTest();
});