Driklyn
Member
|
New ListGroup Flag: LGW_DATA_OR_PARENT
Currently, you have two options for auto width detection of ListGroup data:
The problem with that is:
If you use LGW_DATA, you're guaranteed to show the entire text for each piece of data, but if all the text in the data is only a few characters long, you end up with a very tiny menu to click on.
If you use LGW_PARENT, you're guaranteed to get an easily clickable menu, but if any text in the data exceeds this width, the characters get cut off.
The solution:
LGW_DATA_OR_PARENT: It finds the longest piece of text in the data and, if it is longer than LGW_PARENT, it uses LGW_DATA; however, if it is shorter than LGW_PARENT, it uses LGW_PARENT.
The best of both worlds
(This post was last modified: 05-13-2011 06:51 AM by Driklyn.)
|
|
05-13-2011 06:49 AM |
|
Esenthel
Administrator
|
RE: New ListGroup Flag: LGW_DATA_OR_PARENT
that was added as LCW_MAX_DATA_PARENT or similar
|
|
09-28-2011 11:55 AM |
|
Driklyn
Member
|
RE: New ListGroup Flag: LGW_DATA_OR_PARENT
Very cool! Surprised you remembered this..
|
|
09-29-2011 05:54 AM |
|