Skip to content

Elements model window css problem  #162

@beshoydawood

Description

@beshoydawood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions