r763 - trunk/ui

r763 - trunk/ui


Author: pazu2k@gmail.com
Date: Thu Oct 2 11:49:42 2008
New Revision: 763
Modified:
trunk/ui/ui.spinner.js
Log:
Spinner: fixed IE6 bugs with spinner height for data lists.
Modified: trunk/ui/ui.spinner.js
==============================================================================
--- trunk/ui/ui.spinner.js    (original)
+++ trunk/ui/ui.spinner.js    Thu Oct 2 11:49:42 2008
@@ -142,16 +142,17 @@
        // Manipulate height of spinner.
        this._items = this.element.children().length;
        if (this._items > 1) {
+            var height = this.element.outerHeight()/this._items;
            this.element
            .addClass('ui-spinner-list')
-            .css('height', this.element.outerHeight()/this._items)
+            .height(height)
            .children()
                .addClass('ui-spinner-listitem')
-                .css('height', this.element.outerHeight())
+                .height(height)
                .css('overflow', 'hidden')
            .end()
            .parent()
-                .css('height', this.element.outerHeight())
+                .height(height)
            .end();
            this.options.stepping = 1;
            this.options.min = 0;
@@ -288,7 +289,7 @@
    },
    _animate: function(d) {
        if (this.element.hasClass('ui-spinner-list') && ((d == 'up' &&
this._getValue() <= this.options.max) || (d == 'down' && this._getValue()