Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Responsive Breakpoints - when Hidden layout occupies space

SA-11004

Summary



When using a responsive breakpoint for a layout, you hide it at a desired breakpoint, but you notice that the hidden layout still takes up space on screen. This occurs when using a dynamic layout inside a dynamic layout. 

Error Messages



Not Applicable

Steps to Reproduce



1. Create a few dynamic layouts within a parent dynamic layout.
2. One of the dynamic layouts above has a custom format. 
3. The custom format has responsive breakpoint set to hide the component. 
4. Observe that the breakpoint does not seem to work and the layout does not hide and even if it hides, the space is used.


Root Cause



The setting on layout, “Minimum item height”, present on the outer layout is not set to 0 by default. So every cell, even if hidden, occupies the space governed by this property. By changing this to 0 you get rid of the space.

Resolution



This issue is resolved through the following Local-change:

Ensure that the top level layout does not have a min-height on each cell, otherwise, even if the inner layout is hidden, it maintains some space. Set the min-height to 0, remove item spacing and the breakpoint. The hidden layout now remains hidden and takes no space at the breakpoint.

Published June 22, 2015 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us