10-28-2012 05:04 AM - edited 10-29-2012 01:24 AM
When I put a multiline label inside of a container with no layout manager set (so presumably it has stack layout by default) the container will not increase in size big enough to show all of the multiline label text. I have no height restrictions, or even preferred heights, set on any of the objects.
Container *centerTopContainer = new Container(); centerTopContainer->setMinWidth(483.0f); centerTopContainer->setMinHeight(100.0f); m_Title = Label::create().text("TITLE1").textStyle(m_TitleSt
yle).multiline(true); m_Title->setHorizontalAlignment(HorizontalAlignmen t::Left); m_Title->setVerticalAlignment(VerticalAlignment::T op); m_Title->setRightPadding(3.0f);
I later set the label text to a variable in an updateItem call (this class is a CustomControl).
Interestingly (perhaps) the "centerTopContainer" container does proportionally increase in size based on how much text is in the label. However, it never increases to a large enough size to show every line of the multiline label (it usually shows about 2/3 of the lines necessary).
Does anybody know what the cause of this behavior could be?
11-14-2012 12:38 AM
Anybody have any ideas?