'Wrap Text' prevents toolbar alignment settings from working

  • 15 February 2022
  • 0 replies
  • 15 views

Userlevel 5
Badge +20
 

'Wrap Text' prevents toolbar alignment settings from working

KBS100163

PRODUCT
K2 Cloud
K2 Five
K2 blackpearl
BASED ON
K2 blackpearl 4.7
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

If 'Wrap Text' is enabled, applying text alignment on cells will not work as expected.

Symptoms

If you use "Wrap Text" in a Label control with long text, applying Right/Center Align to the cell will not work as expected. Text will always be Left-aligned.

But it will apply alignment settings properly, if you have short text.

Image

Troubleshooting Steps

 

This is as designed. If you have word wrap and the text is longer than the width of the containing cell, then the width of the label would be 100% and right or middle align will have no effect.

A workaround is to use custom styles on the label. Long text alignment can be set in the style builder.


0 replies

Be the first to reply!

Reply