/usr/share/javascript/yui3/widget-base-ie/widget-base-ie.js is in libjs-yui3-full 3.5.1-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | /*
YUI 3.5.1 (build 22)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('widget-base-ie', function(Y) {
/**
* IE specific support for the widget-base module.
*
* @module widget-base-ie
*/
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");
// TODO: Ideally we want to re-use the base _uiSizeCB impl
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 && IE < 8 && bb.get("ownerDocument").get("compatMode") != "BackCompat");
}
if (borderBoxSupported) {
cb.toggleClass(contentExpanded, expand);
} else {
if (expand) {
if (heightReallyMinHeight) {
bb.addClass(bbTempExpanding);
}
cb.set(OFFSET_HEIGHT, bb.get(OFFSET_HEIGHT));
if (heightReallyMinHeight) {
bb.removeClass(bbTempExpanding);
}
} else {
cb.setStyle(HEIGHT, EMPTY_STR);
}
}
};
}, '3.5.1' ,{requires:['widget-base']});
|