Jump to content

TUniLabel right aligned using uniAlignmentClient


MarcoC

Recommended Posts

Hi.

I use a TUniGroupBox with AlignmentControl set to uniAlignmentClient and layout set to "table" (with LayoutAttribs.Columns set to 2).
Inside that table layout I put two TUnilabels each row, one left aligned, the second right aligned, 50% of the width for each one).
So this is my (wanted) layout:

--------------------------------------
| Label A                 |                Label B |

Despite I set Alignment of Label B to taRightJustify I alway get a left alignment of the text (see screen, right column tunilabels text is still left aligned):

Clip-tablelayout.jpg.30cbb29f7bb7d3616ae46ad2767ff951.jpg

I suspect that using a client alignment maybe I have to bypass Unigui and set the style of that label with something like this

style:{"float":"right"}

Someone can help me to get this?
Using Unigui Professional second last available version.
Thanks!
Marco

 

Link to comment
Share on other sites

Hello,

40 minutes ago, cirirex said:

--------------------------------------
| Label A                 |                Label B |

One possible solution.

1. UniGroupBox1.LayoutConfig.Cls = customBox

2. LabelB.Alignment = taRightJustify

3. CustomCSS:

.customBox label {
  display: block;
}

 

Link to comment
Share on other sites

Thanks Sherzod,

if I can't fix it I'll try to send a testcase: in the meaning may you confirm that in your tests you use all my client layout settings (table layout, cols, ecc.) that I'm using, or your project modifies and uses only UniGroupBox1.LayoutConfig.Cls, LabelB.Alignment and CustomCSS to get the right alignment?
Marco

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...