Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Content dimensions depending on barOnCls #184

@andreyvolokitin

Description

@andreyvolokitin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions