diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-21 22:17:52 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-21 22:17:52 -0400 |
commit | 4deb824699b025d74d6849a73ec47c182df93fa0 (patch) | |
tree | 42e2cacdc7b031e8f56c23617eb31538fb715156 /ui/jquery.ui.autocomplete.js | |
parent | 3f070bdc62a8d00ca6d8428b1a1fe9e39ff72c65 (diff) | |
download | jquery-ui-4deb824699b025d74d6849a73ec47c182df93fa0.tar.gz jquery-ui-4deb824699b025d74d6849a73ec47c182df93fa0.zip |
Core: Added .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight(). Fixes #5850 - .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight() setters.
Diffstat (limited to 'ui/jquery.ui.autocomplete.js')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index f270d0519..855037824 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -279,13 +279,9 @@ $.widget( "ui.autocomplete", { menuWidth = ul.width( "" ).outerWidth(); textWidth = this.element.outerWidth(); - ul.width( Math.max( menuWidth, textWidth ) - - ( parseFloat( ul.css("paddingLeft") ) || 0 ) - - ( parseFloat( ul.css("paddingRight") ) || 0 ) - - ( parseFloat( ul.css("borderLeftWidth") ) || 0 ) - - ( parseFloat( ul.css("borderRightWidth") ) || 0 ) ); + ul.outerWidth( Math.max( menuWidth, textWidth ) ); }, - + _renderMenu: function( ul, items ) { var self = this; $.each( items, function( index, item ) { |