From af67c6a8d94764fd803f6b8b875d82b39022a3fd Mon Sep 17 00:00:00 2001 From: Christian Frichot Date: Sat, 6 Apr 2013 15:52:32 +0800 Subject: [PATCH] Few enhancements to dom.js. See #870 #871 #872 --- core/main/client/dom.js | 80 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 78 insertions(+), 2 deletions(-) diff --git a/core/main/client/dom.js b/core/main/client/dom.js index 2026f7117..913aeae73 100644 --- a/core/main/client/dom.js +++ b/core/main/client/dom.js @@ -119,8 +119,15 @@ beef.dom = { var form_action = params['src']; params['src'] = ''; } - if (type == 'hidden') { css = $j.extend(true, {'border':'none', 'width':'1px', 'height':'1px', 'display':'none', 'visibility':'hidden'}, styles); } - if (type == 'fullscreen') { css = $j.extend(true, {'border':'none', 'background-color':'white', 'width':'100%', 'height':'100%', 'position':'absolute', 'top':'0px', 'left':'0px', 'z-index':beef.dom.getHighestZindex()+1}, styles); $j('body').css({'padding':'0px', 'margin':'0px'}); } + if (type == 'hidden') { + css = $j.extend(true, {'border':'none', 'width':'1px', 'height':'1px', 'display':'none', 'visibility':'hidden'}, styles); + } else if (type == 'fullscreen') { + css = $j.extend(true, {'border':'none', 'background-color':'white', 'width':'100%', 'height':'100%', 'position':'absolute', 'top':'0px', 'left':'0px', 'z-index':beef.dom.getHighestZindex()+1}, styles); + $j('body').css({'padding':'0px', 'margin':'0px'}); + } else { + css = styles; + $j('body').css({'padding':'0px', 'margin':'0px'}); + } var iframe = $j('