widescreen

Detecting browser client area size on wide screen using javascript

可紊 提交于 2019-12-22 08:55:09
问题 I've been using the following code to detect browser client area width for ages and it wokred 100% with all browsers, including FF, Safari and various versions of IE. However, now when I switched to a new monitor with widescreen resolution (1280x800) this code fails on IE8. It reports clientwidth of 1024 !!!??? Any ideas how to get the correct client area width ? function getClientWidth() { var v=0,d=document,w=window; if((!d.compatMode || d.compatMode == 'CSS1Compat') && !w.opera && d

How to disable letterboxing and adjust UI5 for the widescreen?

三世轮回 提交于 2019-11-28 13:00:45
I have an UI5-based app (1.66+), which works correctly, but there are huge empty spaces on the left and right sides of the screen (aka letterboxing is on): I want to disable letterboxing to use the entire screen space. I tried the following approaches so far: To use "fullWidth": true in sap.ui section of manifest.json To add desktop-related classes to the HTML-tag in index.html : <html class="sap-desktop sapUiMedia-Std-Desktop sapUiMedia-StdExt-LargeDesktop"> To add appWidthLimited: false to index.html : <script> sap.ui.getCore().attachInit(function () { new sap.m.Shell({ app: new sap.ui.core

How to disable letterboxing and adjust UI5 for the widescreen?

雨燕双飞 提交于 2019-11-27 07:23:38
问题 I have an UI5-based app (1.66+), which works correctly, but there are huge empty spaces on the left and right sides of the screen (aka letterboxing is on): I want to disable letterboxing to use the entire screen space. I tried the following approaches so far: To use "fullWidth": true in sap.ui section of manifest.json To add desktop-related classes to the HTML-tag in index.html : <html class="sap-desktop sapUiMedia-Std-Desktop sapUiMedia-StdExt-LargeDesktop"> To add appWidthLimited: false to