diff options
author | David Petersen <public@petersendidit.com> | 2012-11-25 19:02:36 -0600 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-11-26 16:35:07 -0500 |
commit | 6121683d807b2da56cf6cde3240d5926421b280b (patch) | |
tree | 246b1e654d85537a3bda1b4c459a1e3edb04aa20 /ui | |
parent | ee8d20ea067f29c90a0c46ddb91584989d585b28 (diff) | |
download | jquery-ui-6121683d807b2da56cf6cde3240d5926421b280b.tar.gz jquery-ui-6121683d807b2da56cf6cde3240d5926421b280b.zip |
Tabs: Calculate border and padding on tabs container. Fixed #8836: Height overflows parent with heightStyle: 'fill'.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 0b6480123..dcb0c2768 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -497,6 +497,8 @@ $.widget( "ui.tabs", { if ( heightStyle === "fill" ) { maxHeight = parent.height(); + maxHeight -= this.element.outerHeight() - this.element.height(); + this.element.siblings( ":visible" ).each(function() { var elem = $( this ), position = elem.css( "position" ); |