~ubuntu-branches/ubuntu/raring/maas/raring-updates

« back to all changes in this revision

Viewing changes to src/maasserver/static/jslibs/yui/3.4.1/build/widget-base-ie/widget-base-ie.js

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-07-03 17:42:37 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120703174237-p8l0keuuznfg721k
Tags: 0.1+bzr709+dfsg-0ubuntu1
* New Upstream release
* debian/control:
  - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
    libjs-raphael
* debian/maas.install:
  - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
  - Update to install various files from chroot, rather tha manually copy
    them from the source.
* debian/maas.links: symlink celeryconfig.py
* debian/maas.maas-celery.upstart: Add job.
* debian/rules:
  - Install celery upstart job.
  - Do not install jslibs as packages are now used.
  - Drop copying of maas_local_settings_sample.py as source now ships
    a maas_local_settings.py
* debian/patches:
  - 04-maas-http-fix.patch: Drop. Merged upstream.
  - 01-fix-database-settings.patch: Refreshed.
  - 99_enums_js.patch: Added until creation of enum.js / build process
    is fixed.
* debian/maas.postinst: Update bzr version to correctly handle upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
YUI 3.4.1 (build 4118)
3
 
Copyright 2011 Yahoo! Inc. All rights reserved.
4
 
Licensed under the BSD License.
5
 
http://yuilibrary.com/license/
6
 
*/
7
 
YUI.add('widget-base-ie', function(Y) {
8
 
 
9
 
/**
10
 
 * IE specific support for the widget-base module.
11
 
 *
12
 
 * @module widget-base-ie
13
 
 */
14
 
var BOUNDING_BOX = "boundingBox",
15
 
    CONTENT_BOX = "contentBox",
16
 
    HEIGHT = "height",
17
 
    OFFSET_HEIGHT = "offsetHeight",
18
 
    EMPTY_STR = "",
19
 
    IE = Y.UA.ie,
20
 
    heightReallyMinHeight = IE < 7,
21
 
    bbTempExpanding = Y.Widget.getClassName("tmp", "forcesize"),
22
 
    contentExpanded = Y.Widget.getClassName("content", "expanded");
23
 
 
24
 
// TODO: Ideally we want to re-use the base _uiSizeCB impl
25
 
Y.Widget.prototype._uiSizeCB = function(expand) {
26
 
 
27
 
    var bb = this.get(BOUNDING_BOX),
28
 
        cb = this.get(CONTENT_BOX),
29
 
        borderBoxSupported = this._bbs;
30
 
 
31
 
    if(borderBoxSupported === undefined) {
32
 
        this._bbs = borderBoxSupported = !(IE < 8 && bb.get("ownerDocument").get("compatMode") != "BackCompat"); 
33
 
    }
34
 
 
35
 
    if (borderBoxSupported) {
36
 
        cb.toggleClass(contentExpanded, expand);
37
 
    } else {
38
 
        if (expand) {
39
 
            if (heightReallyMinHeight) {
40
 
                bb.addClass(bbTempExpanding);
41
 
            }
42
 
 
43
 
            cb.set(OFFSET_HEIGHT, bb.get(OFFSET_HEIGHT));
44
 
 
45
 
            if (heightReallyMinHeight) {
46
 
                bb.removeClass(bbTempExpanding);
47
 
            }
48
 
        } else {
49
 
            cb.setStyle(HEIGHT, EMPTY_STR);
50
 
        }
51
 
    }
52
 
};
53
 
 
54
 
 
55
 
}, '3.4.1' ,{requires:['widget-base']});