]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/javascript/yui3/build/widget/widget-base-ie.js
Release 6.2.2
[Github/sugarcrm.git] / include / javascript / yui3 / build / widget / widget-base-ie.js
1 /*
2  Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3  Code licensed under the BSD License:
4  http://developer.yahoo.com/yui/license.html
5  version: 3.3.0
6  build: 3167
7  */
8 YUI.add('widget-base-ie',function(Y){var BOUNDING_BOX="boundingBox",CONTENT_BOX="contentBox",HEIGHT="height",OFFSET_HEIGHT="offsetHeight",EMPTY_STR="",IE=Y.UA.ie,heightReallyMinHeight=IE<7,bbTempExpanding=Y.Widget.getClassName("tmp","forcesize"),contentExpanded=Y.Widget.getClassName("content","expanded");Y.Widget.prototype._uiSizeCB=function(expand){var bb=this.get(BOUNDING_BOX),cb=this.get(CONTENT_BOX),borderBoxSupported=this._bbs;if(borderBoxSupported===undefined){this._bbs=borderBoxSupported=!(IE<8&&bb.get("ownerDocument").get("compatMode")!="BackCompat");}
9 if(borderBoxSupported){cb.toggleClass(contentExpanded,expand);}else{if(expand){if(heightReallyMinHeight){bb.addClass(bbTempExpanding);}
10 cb.set(OFFSET_HEIGHT,bb.get(OFFSET_HEIGHT));if(heightReallyMinHeight){bb.removeClass(bbTempExpanding);}}else{cb.setStyle(HEIGHT,EMPTY_STR);}}};},'3.3.0',{requires:['widget-base']});