Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Add support to max-height, max-width, min-height and min-width #88

Open
Dev1lDragon opened this issue Dec 4, 2019 · 1 comment
Open
Assignees

Comments

@Dev1lDragon
Copy link

in function initScrollbar add:

 ...
             state.el2.style.height = '100%';
            state.el2.style.maxHeight = 'inherit';
            state.el2.style.minHeight = 'inherit';
 ...
                     state.el2.style.width = '100%';
                    state.el2.style.maxWidth = 'inherit';
                    state.el2.style.minWidth = 'inherit';

and in destroyScrollbar add:

                state.el2.style.height = '';
                state.el2.style.maxHeight = '';
                state.el2.style.minHeight = 'inherit';   
                state.el2.style.width = '';
                state.el2.style.maxWidth = '';
                state.el2.style.minWidth = 'inherit';
@DominikSerafin
Copy link
Owner

Related: #52

@DominikSerafin DominikSerafin self-assigned this Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants