Thread Rating:
  • 0 Vote(s) - 0 Average
Auto-size height for labels?
#1
We have auto-sizing width for labels which really comes in handy for a horizontal grouplist full of labels.

Is there any chance we could get the same thing for the label's height when dealing with labels in a vertical grouplist?
Reply
#2
umm don't they all just use a standard font anyway ? what would be the point since the font it uses would never change height
Reply
#3
The point would be in the case where the label's <wrapmultiline> is set to true. When I said vertical grouplists in the OP I wasn't referring to the context menu or the like. I'm referring to user created grouplists such as a grouplist filled with the details of a movie for example.

Having an autosize for height would take into account labels that are wider than the grouplist and, if <wrapmultiline> is set to true, automatically adjust the height to accommodate the extra line. At the moment, those label would either end up having to scroll or the code would have to take into account a possible 2nd line leaving an extra space - both look ugly in my opinion.
Reply
#4
right now I get you yeah that could be useful for multiline labels or textboxes
Reply
#5
I noticed Boxee seems to have this in place so it may be as simple as C&P depending on far their code has diverged from XBMC's code.
Reply
#6
Heh, in this case you may in fact be correct. For the budding coder, check the GetHeight() function here (and the other functions required for m_minHeight) https://github.com/bartsidee/boxee/blob/...ontrol.cpp

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Auto-size height for labels?00