From 7022c193227e02f82f7e823adf5ed6f2f9ad5eff Mon Sep 17 00:00:00 2001 From: vtwoods Date: Wed, 18 May 2011 16:12:57 -0400 Subject: [PATCH] Fixed the bug where collapsing or expanding a collapsable did not cause a resize event to be triggered --- js/jquery.mobile.collapsible.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.collapsible.js b/js/jquery.mobile.collapsible.js index a7174e82..a24657d1 100644 --- a/js/jquery.mobile.collapsible.js +++ b/js/jquery.mobile.collapsible.js @@ -87,6 +87,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, { .find('a:eq(0), .ui-btn-inner') .addClass('ui-corner-bottom'); } + $(window).trigger('resize'); } }) @@ -105,7 +106,7 @@ $.widget( "mobile.collapsible", $.mobile.widget, { .find('a:eq(0), .ui-btn-inner') .removeClass('ui-corner-bottom'); } - + $(window).trigger('resize'); } }) .trigger(o.collapsed ? 'collapse' : 'expand');