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

jscrollpane track goes past the DIV #250

Closed
nishant80 opened this issue Sep 12, 2013 · 2 comments
Closed

jscrollpane track goes past the DIV #250

nishant80 opened this issue Sep 12, 2013 · 2 comments

Comments

@nishant80
Copy link

jscrollpane track goes past the DIV border if DIV is under jquery-ui tab.

Please see the code and demo at jfiddle here:
http://jsfiddle.net/nishant80/zRVqB/

As you can see in result, the vertical scroll-bar sticks out towards top and horizontal bar sticks out towards left. This makes it look ugly.

I would like them to be exactly aligned with the table.

If I remove tabs, they won't stick out. So I guess it has something to do with how jscrollpane is behaving under jquery-ui tab.

Thanks!

@vitch
Copy link
Owner

vitch commented Sep 12, 2013

The problem isn't related to jScrollPane specifically, it's to do with relations between your CSS and jQuery UI's CSS... If you don't initialise jScrollPane you will see that things still look weird. This is because jQuery UI adds padding to .ui-tabs .ui-tabs-panel...

You can debug it using your browser's development tools (e.g. right click on the table in Chrome and select "Inspect element"). One workaround would be to nest the jScrollPane inside the tabbable element like so:
http://jsfiddle.net/sXHY9/

@vitch vitch closed this as completed Sep 12, 2013
@nishant80
Copy link
Author

Kelvin,

Thanks for checking this and suggesting a workaround. I will try what you have suggested.

-Nishant

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

No branches or pull requests

2 participants