diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-01-16 19:38:19 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-01-16 19:38:19 +0100 |
commit | b7f507b92595e6c5537ccc7f678e276d5a8642b9 (patch) | |
tree | 7fbd646a2aac5c2c8ce0da923d14b54b90fcb189 /core/js | |
parent | 1d57a2e2a9d5e392bb1061479543cd1dec860c4b (diff) | |
download | nextcloud-server-b7f507b92595e6c5537ccc7f678e276d5a8642b9.tar.gz nextcloud-server-b7f507b92595e6c5537ccc7f678e276d5a8642b9.zip |
dont resize content div with javascript but use css box-sizing to do it
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/js/js.js b/core/js/js.js index 95889ac8a27..23ace89f4e3 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -504,6 +504,7 @@ function fillHeight(selector) { if(selector.outerHeight() > selector.height()){ selector.css('height', height-(selector.outerHeight()-selector.height()) + 'px'); } + console.warn("This function is deprecated! Use CSS instead"); } /** @@ -519,17 +520,11 @@ function fillWindow(selector) { if(selector.outerWidth() > selector.width()){ selector.css('width', width-(selector.outerWidth()-selector.width()) + 'px'); } + console.warn("This function is deprecated! Use CSS instead"); } $(document).ready(function(){ - $(window).resize(function () { - fillHeight($('#leftcontent')); - fillWindow($('#content')); - fillWindow($('#rightcontent')); - }); - $(window).trigger('resize'); - if(!SVGSupport()){ //replace all svg images with png images for browser that dont support svg replaceSVG(); }else{ |