From ea88c164726345a22da0ed142f95d0e7d4e6c245 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 24 Nov 2014 17:37:50 +0300 Subject: [PATCH] fixed a bug in chrome app + object.js... Signed-off-by: Alex A. Naanou --- ui (gen4)/css/layout.css | 11 +++++++++-- ui (gen4)/object.js | 5 ++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/css/layout.css b/ui (gen4)/css/layout.css index a38ba22c..10e53c4c 100644 --- a/ui (gen4)/css/layout.css +++ b/ui (gen4)/css/layout.css @@ -206,8 +206,15 @@ button:hover { } /* empty ribbon set... */ .ribbon-set:empty { - width: 100%; - height: 100%; + width: 100% !important; + height: 100% !important; + top: 0px !important; + left: 0px !important; + -webkit-transform: none !important; + -moz-transform: none !important; + -o-transform: none !important; + -ms-transform: none !important; + transform: none !important; } .viewer:empty:before, .viewer:empty:after, diff --git a/ui (gen4)/object.js b/ui (gen4)/object.js index fc36eeb9..e88ecd22 100755 --- a/ui (gen4)/object.js +++ b/ui (gen4)/object.js @@ -45,7 +45,10 @@ function makeConstructor(name, a, b){ } // this is here to make Chrome output more user friendly... - if(_constructor.name == 'Constructor'){ + // skip for IE... + if(_constructor.name == 'Constructor' + // skip for chrome app... + && !(window.chrome && chrome.runtime && chrome.runtime.id)){ eval('_constructor = '+ _constructor .toString() .replace(/Constructor/g, name))