Page 1 of 1

auto width label

Posted: Wed Dec 16, 2015 4:29 pm
by Nicklas

Helo!

I trying to find out if it's possible to set a auto on the width of a label. So that the label is not longer than the text on it.

The label i'm using and talkin' about gets different values from the db so i can't just change the margin of it.


auto width label

Posted: Wed Dec 16, 2015 9:51 pm
by Evgene Karachevtsev

Hello Nicklas,

Could you please provide us with a screenshot of how the labels are displayed now?


auto width label

Posted: Thu Dec 17, 2015 12:19 am
by Nicklas

auto width label

Posted: Thu Dec 17, 2015 12:20 am
by Nicklas

Cellgrid and label


auto width label

Posted: Thu Dec 17, 2015 7:07 pm
by Serhii Kulibaba

Hello Nicklas,

How they have to look like?


auto width label

Posted: Thu Dec 17, 2015 7:48 pm
by Nicklas

When i get for example "Josh" from the db, i want it to look like this:

Image

When i get "George" from the db, i want it to be like this:

Image

When i get "Katy" from the db, i want it to look like this:

Image


auto width label

Posted: Fri Dec 18, 2015 7:50 am
by Evgene Karachevtsev

Nicklas,

Please create a class for label and add a property codedisplay: inline-block;/code
Then add codewidth: (fixed value) px/em.../code or codewidth: 100%/code


auto width label

Posted: Sun Dec 20, 2015 9:01 pm
by Nicklas

It worked allmost as i wanted it to be. I just changed the codewidth: 100%;/code to codewidth: auto;/code

Thank you!


auto width label

Posted: Tue Jul 12, 2016 8:44 am
by Jeanvia

Hi Nicklas. How do you managed to solved it? I have tried Evgene method but it is not working.