Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Jan 7, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Thanks for the patch.  Code is updated.

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant