vitch / jScrollPane

Pretty, customisable, cross browser replacement scrollbars
http://jscrollpane.kelvinluck.com/
GNU General Public License v2.0
2.16k stars 630 forks source link

autoresize problem #10

Closed hyposko closed 6 years ago

hyposko commented 14 years ago

Autoresize does not work, if jscrollpanne is inside jquery tabs .. It cause, to dissappera all content after reclick on tab ..

There would be nice to have, as in old version, an unload destroy funtion.

And there would be nice to have the option, to set the width of the scroller as in v1. And the feature with sided scrollbar is still missing in this new version. Hurry up :-)

btw great plugin, but still sticking with old version doue this issues ..

vitch commented 14 years ago

Can you provide a URL showing jScrollPane not working correctly inside jQuery tabs? I have a working example here (not using jQuery tabs but using something which works in a similar manner): http://jscrollpane.kelvinluck.com/invisibles.html

I will consider a destroy function although it is much less necessary with this version as e.g. resizing works correctly.

You can set the width of the scrollbar using CSS (override the width in the .jspVerticalBar rule). This is much better than setting it in JS as it keeps the correct separation between behaviour (JS) and appearance (CSS).

What do you mean "the feature with the sided scrollbar"? Do you mean the scrollbar on the left like this example: http://jscrollpane.kelvinluck.com/scroll_on_left.html

hyposko commented 14 years ago

The hiding of content happends especially by resizing of the window .. Weird. I use ajax loaded content in many cases, this cause propably size change of other objects around jscroll panne. The destroy function is in many cases needed, by ajax loaded content, not only for resizing. The last thing with left sided border is ok, i didnt saw it in manual, too many links .. Thanks for hints ..

hyposko commented 14 years ago

The unload function in v1 is working great with ajax loaded scrollboxes, but in v2 it does not. Self the reactivating on same element id, do nothing.

vitch commented 14 years ago

If you can provide a test case with simple code showing the problem (something like this one submitted by another user: http://jscrollpane.kelvinluck.com/issues/7/before.html ) then there is a much better chance that I will be able to find and fix the bug you mention.

markimark commented 14 years ago

I am working on a vertically/horizontally scrolling website (scrollTo) and all is scrolling smooth in all browsers. One of the slide content divs does have a scrolling pane. If I set autoReinitialise to true it keeps running smooth except in IE (working currently with IE8). All scroll transitions are getting very shaky. Is there anything I can do to keep it smooth in IE as well? Thanks for any help.

hyposko commented 14 years ago

I cant provide sample, but i researched this issue. I happend especially by resizing of the above

container in which
here is some text, which will be hidden if resizedtext

I You try to resize the container div from example 300px to 0px; it will hide the jsppanne, then if You try to resize back to 300px; jspContainer will not automaticaly resize, it will stay to 0px;

I must mentoin the resizing is done by steps, like animated resizing with jquery.

I tested it on the very last beta version You have on github.

Maybe this will help You to improve it. Will awaiting the fix :) thanks

hyposko commented 14 years ago

damm, html tags stripped :( < div style="width:300px;" > < div class="jspContainer" > text whix will stay hidden after resize 0px to 300px < / div > < / div >