thefantas / jquery-ui-tabs-paging

Automatically exported from code.google.com/p/jquery-ui-tabs-paging
0 stars 0 forks source link

Tabs cannot reinit on a div resize the way they can on a window resize #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This library is very smart about handling window resizes by binding the 
handleResize method to the window resize event.

However, I have a div which is resizable with the jQuery ui resizeable plugin 
(http://jqueryui.com/demos/resizable/) and I'd like to be able to make the tabs 
in that div lay themselves out again in the sameway.  Unfortunately, I cannot 
call into the proper functions because they're located in a closure.

My solution was to patch this library to expose a "pagingResize" action 
alongside the "pagingDestroy" function which is already exposed.  This allows 
me to manually call $("#mytabs").tabs("pagingResize") anytime the div resizing 
event triggers, similar to how window resizing is already handled.

I've attached my one-line-of-code patch for your consideration.  Thanks so much 
for this great plugin!

Original issue reported on code.google.com by eli.courtwright on 8 Mar 2011 at 3:40

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch.  Code is updated.

Original comment by brian.se...@gmail.com on 21 Jul 2012 at 10:50