mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
Bug 657614 - No form helper zoom on tap of field input [r=mfinkle]
This commit is contained in:
parent
6ec6428291
commit
a501b6f20a
@ -162,10 +162,14 @@ let Util = {
|
||||
},
|
||||
|
||||
isTablet: function isTablet() {
|
||||
let dpi = Util.getWindowUtils(window).displayDPI;
|
||||
if (dpi <= 96)
|
||||
return (window.innerWidth > 1024);
|
||||
|
||||
// See the tablet_panel_minwidth from mobile/themes/core/defines.inc
|
||||
let tablet_panel_minwidth = 124;
|
||||
let dpmm = Util.getWindowUtils(window).displayDPI / 25.4;
|
||||
return (window.innerWidth / dpmm <= tablet_panel_minwidth);
|
||||
let dpmm = 25.4 * window.innerWidth / dpi;
|
||||
return (dpmm >= tablet_panel_minwidth);
|
||||
},
|
||||
|
||||
isPortrait: function isPortrait() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user