aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Petersen <public@petersendidit.com>2012-11-25 19:02:36 -0600
committerScott González <scott.gonzalez@gmail.com>2012-11-26 16:35:07 -0500
commit6121683d807b2da56cf6cde3240d5926421b280b (patch)
tree246b1e654d85537a3bda1b4c459a1e3edb04aa20 /tests
parentee8d20ea067f29c90a0c46ddb91584989d585b28 (diff)
downloadjquery-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 'tests')
-rw-r--r--tests/unit/tabs/tabs_options.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/unit/tabs/tabs_options.js b/tests/unit/tabs/tabs_options.js
index f6e89e84f..c78c42b58 100644
--- a/tests/unit/tabs/tabs_options.js
+++ b/tests/unit/tabs/tabs_options.js
@@ -235,10 +235,18 @@ test( "{ heightStyle: 'content' }", function() {
});
test( "{ heightStyle: 'fill' }", function() {
- expect( 2 );
+ expect( 4 );
$( "#tabs8Wrapper" ).height( 500 );
var element = $( "#tabs8" ).tabs({ heightStyle: "fill" });
equalHeight( element, 485 );
+ element.tabs( "destroy" );
+
+ element = $( "#tabs8" ).css({
+ "border": "1px solid black",
+ "padding": "1px 0"
+ });
+ element.tabs({ heightStyle: "fill" });
+ equalHeight( element, 481 );
});
test( "{ heightStyle: 'fill' } with sibling", function() {