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

Elements model window css problem #162

Open
beshoydawood opened this issue Dec 21, 2017 · 0 comments
Open

Elements model window css problem #162

beshoydawood opened this issue Dec 21, 2017 · 0 comments

Comments

@beshoydawood
Copy link

Hello Tailor Team,

I have extended Tailor_Element class with other elements but the problem is these element's model window have more than 3 tabs which result as the following:
tailoring_ home - google chrome 2017-12-21 18 35 26

Solution using pure CSS:

1 - Changing .modal__content position to relative instead of absolute.
2 - Setting the top value to 0 for .modal__content
3 - Setting overflow to hidden for .modal__content
4 - Setting overflow to scroll for .modal__inner
5 - Adding .modal__footer before the closing tag for .modal__content div

Solution using Javascipt:

Using javascript to detect the top value for .modal__content depending on the number of section tabs.

Solution using Javascript and CSS:

Adding extra class to model window if the tabs width is larger than the inner width then apply extra top value for .model__content using this class

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