Support Article
Labels displayed reversed when placed in header of a layout
Summary
In the label field of header of a dynamic layout, when we place a label-value pair, the order gets reversed while displaying on portal.

Error Messages
Not Applicable
Steps to Reproduce
1. Include a dynamic layout.
2. Add a label value pair next to the header title of the layout.
Root Cause
From code perspective of dynamic layout, it seems as expected because we are using float to adjust positioning, and float behaves this way.
This behavior cannot be fix in hotfix as it needs changes to lot of markup, css and also regressive testing for all layouts + headers is required, as it might affect other uses cases too.
Resolution
Perform the following local-change step:
1. In the dynamic layout, give the labels intentionally in the reverse order so that at runtime it displays in the correct order.
(or)
2.Instead of giving labels directly, include one section that contains all the labels.
BUG-279316 has been raised, this will be fixed in the future Pega releases. |
Published January 2, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.