Skip to content
This repository was archived by the owner on Jul 10, 2022. It is now read-only.
This repository was 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

Description

@Dev1lDragon

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';

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions