TouchUI Placeholder height incorrect | Community
Skip to main content
Level 2
November 25, 2020
Solved

TouchUI Placeholder height incorrect

  • November 25, 2020
  • 1 reply
  • 1394 views

We are currently using the Classic UI and preparing to migrate to Touch UI.
During this we observed, that the height of the placeholders of our components or the drag and drop area looks incorrect. If we compare to we-retail example pages, the issues does not happen there.

 

Correct on We-Retail:

 

Wrong height in our pages:

 

 

Technical investigation showed, that the height of the placeholder is 28,75px instead of 40px in we-retail. The div height is calculated and set as inline style.

 

Contacts to Adobe Consulting showed, that this happens also for others. But has anyone solved the same behavior?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Suraj_Kamdi

@timo_hh 

It mainly happens because of CSS when div tag contains global styling as follows.

 

 

 

div{ height: 100px; }

 

 

try to apply class-specific CSS to avoid such issues.

 

or you can also write some custom CSS for clientlib categories named cq.authoring.editor.core

 

1 reply

Suraj_Kamdi
Community Advisor
Suraj_KamdiCommunity AdvisorAccepted solution
Community Advisor
November 25, 2020

@timo_hh 

It mainly happens because of CSS when div tag contains global styling as follows.

 

 

 

div{ height: 100px; }

 

 

try to apply class-specific CSS to avoid such issues.

 

or you can also write some custom CSS for clientlib categories named cq.authoring.editor.core

 

Suraj Kamdi
Timo_HHAuthor
Level 2
November 25, 2020

@suraj_kamdi, thanks for that hint.

We found with that idea that the global font definition has influence on the placeholder height:

 

html {
font-family: Arial;
font-size: 62.5%;
}

 

So font-size: 62.5% reduces the height of the placeholders accordingly.

December 19, 2023

Someone found a solution keeping font-size on html tag? I need to keep that but in that case placeholders have a wrong height. I think the placeholder should have a stand-alone graphic not related to root tag.