From 6681e7ba9804cca807c6a63d60c06db1a0765096 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 11 Aug 2009 19:08:23 +0000 Subject: [PATCH] accordion: Fix for #4695, refactored --- ui/ui.accordion.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index d3bbce8e4..17e3cec42 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -217,8 +217,7 @@ $.widget("ui.accordion", { }); this.headers.next().each(function() { - var padding = $(this).innerHeight() - $(this).height(); - $(this).height(Math.max(0, maxHeight - padding)); + $(this).height(Math.max(0, maxHeight - $(this).innerHeight() + $(this).height())); }).css('overflow', 'auto'); } else if ( o.autoHeight ) { -- 2.39.5