From 6121683d807b2da56cf6cde3240d5926421b280b Mon Sep 17 00:00:00 2001 From: David Petersen Date: Sun, 25 Nov 2012 19:02:36 -0600 Subject: Tabs: Calculate border and padding on tabs container. Fixed #8836: Height overflows parent with heightStyle: 'fill'. --- ui/jquery.ui.tabs.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/jquery.ui.tabs.js') 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" ); -- cgit v1.2.3