X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6:/src/core/Element.style-more.js diff --git a/src/core/Element.style-more.js b/src/core/Element.style-more.js index 062d95cc..3de1b61b 100644 --- a/src/core/Element.style-more.js +++ b/src/core/Element.style-more.js @@ -1,8 +1,8 @@ /*! - * Ext JS Library 3.2.0 - * Copyright(c) 2006-2010 Ext JS, Inc. - * licensing@extjs.com - * http://www.extjs.com/license + * Ext JS Library 3.3.1 + * Copyright(c) 2006-2010 Sencha Inc. + * licensing@sencha.com + * http://www.sencha.com/license */ /** * @class Ext.Element @@ -106,7 +106,7 @@ Ext.Element.addMethods(function(){ */ setSize : function(width, height, animate){ var me = this; - if(Ext.isObject(width)){ // in case of object from getSize() + if(typeof width == 'object'){ // in case of object from getSize() height = width.height; width = width.width; } @@ -255,7 +255,7 @@ Ext.Element.addMethods(function(){ return { width : d.clientWidth, height : d.clientHeight - } + }; } }, @@ -282,7 +282,7 @@ Ext.Element.addMethods(function(){ return { width : extdom.getViewWidth(), height : extdom.getViewHeight() - } + }; } // Use Styles if they are set if(s.width && s.width != 'auto'){