EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: tslatt on December 02, 2011, 08:33:33 AM



Title: Resize tabs on scrollbar appearance?
Post by: tslatt on December 02, 2011, 08:33:33 AM
I trigger a resize of my tabs on "window.onresize", tab "onAdd", and tab "onSelect". This works well for all conditions but one: If my page content height is small enough that the browser's vertical scrollbar does not appear, and then content is added to the page dynamically, increasing the height and causing the browser's vertical scrollbar to appear, the tab does not resize. This means that the new scrollbar now overlaps the rightmost content in my tab. I have to select the tab or resize the window to get it to adjust.

Is there some way to capture the event of the scrollbar appearing and call a tab resize on that event?


Title: Re: Resize tabs on scrollbar appearance?
Post by: tslatt on December 29, 2011, 02:03:43 PM
Almost a month later and I'm still having this issue. Does anyone know how to trigger a resize on browser scrollbar appearance/disappearance?

Any help would be greatly appreciated.


Title: Re: Resize tabs on scrollbar appearance?
Post by: mw515 on October 21, 2015, 05:42:22 PM
I also have this problem, please anyone help me :)


Title: Re: Resize tabs on scrollbar appearance?
Post by: aswzen on October 21, 2015, 07:04:37 PM
please demo your issue in jsfiddle if possible


Title: Re: Resize tabs on scrollbar appearance?
Post by: Max Lamda on November 04, 2015, 09:19:32 AM
Why don't you just resize the Tab after you have added the new content?