Enclavely / tailor

Build beautiful page layouts quickly and easily using your favourite WordPress theme.
https://www.tailorwp.com
GNU General Public License v3.0
1.05k stars 102 forks source link

Elements model window css problem #162

Open beshoydawood opened 6 years ago

beshoydawood commented 6 years ago

Hello Tailor Team,

I have extended TailorElement 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](https://user-images.githubusercontent.com/7535526/34265372-51d41ee0-e67e-11e7-869e-a54f4ac0fee8.png)

Solution using pure CSS:

1 - Changing .modalcontent position to relative instead of absolute. 2 - Setting the top value to 0 for .modalcontent 3 - Setting overflow to hidden for .modalcontent 4 - Setting overflow to scroll for .modalinner
5 - Adding .modalfooter before the closing tag for .modalcontent 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