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

Content dimensions depending on barOnCls #184

Open
andreyvolokitin opened this issue Mar 22, 2020 · 1 comment
Open

Content dimensions depending on barOnCls #184

andreyvolokitin opened this issue Mar 22, 2020 · 1 comment

Comments

@andreyvolokitin
Copy link

andreyvolokitin commented Mar 22, 2020

I make a gap/padding in the content (using additional inner wrapper for that as suggested here) to accommodate scrollbars, but only if they are present (barOnCls is added), so in my css I add padding depending on presence of barOnCls. But after initialization the clipper height is set without this padding taken into account. I suspect (but not 100% sure yet), this is because content dimensions are read while this padding is not yet applied (barOnCls is added after dimensions are read)

What should be a proper solution for this: modifying the code so that dimensions a read after barOnCls is applied, or the gap for scrollbars should be added by different means (i.e. on the outer clipper element, because obviously scroller element can't take any padding)?

P.S.: I see this specifically with horizontal scrolling, not sure if it affects vertical scrolling as well, but I think it might not make any problem there

@andreyvolokitin
Copy link
Author

Yep, clipper can't have padding either because of OS X FF.

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

1 participant