init: function () {
+ if(this.fluidbook.settings.fixAirPixel && this.fluidbook.settings.mobileNavigationType === 'portrait'){
+ $('body').addClass('fixairpixel');
+ }
+
// Manage transform origins based on text direction
// This is important for the elements to have the correct position after scaling
// Note: the #logo is handled in the CSS because it is also affected by the .menu-inverted class
$("#splash .logo").css({
top: (this.hh / 2) - 30 - lh - 10, left: Math.max((this.ww - lw) / 2, 0) // Prevent negative left offsets
});
- }, updateWindow: function () {
+ },
+
+ updateWindow: function () {
this.ww = $(window).width();
this.hh = $(window).height();
if (window.innerHeight && window.innerHeight != this.hh) {
this.hh = window.innerHeight;
}
- }, resizeView: function () {
+ },
+
+ resizeView: function () {
var $this = this;
this.updateWindow();
this.fluidbook.menu.resize(this.ww, this.hh);
- }, handleOrientation: function (forceChange) {
+ },
+
+ handleOrientation: function (forceChange) {
var $this = this;
if (forceChange === undefined) {
forceChange = false;
this.orientation = newo;
$('body').addClass(this.orientation);
+
this.fluidbook.displayOnePage = this.fluidbook.alwaysDisplayOnePage || (this.orientation === 'portrait');
if (changeOrientation) {
}, 2000);
}
}
- }, getScreenFluidbookWidth: function () {
+ },
+
+ getScreenFluidbookWidth: function () {
return $("#fluidbook").outerWidth();
},
height: 100%;
background-color: @pages-background;
+ .fixairpixel & {
+ overflow: hidden;
+ }
+
img {
- //width: ~"calc(100% + 1px)";
width: 100%;
height: 100%;
+
+ .fixairpixel & {
+ width: ~"calc(100% + 1px)";
+ height: ~"calc(100% + 1px)";
+ }
}
}
+
.chrome .nozoom .background img {
image-rendering: -webkit-optimize-contrast;
}