if (!min) min = 1;
return true;
}
- value = (float)atof(pNode->FirstChild()->Value());
+ value = ParsePosition(pNode->FirstChild()->Value(), parentSize);
return true;
}
(labelInfo.align & XBFONT_RIGHT))
posX -= width;
}
- if (!width && !minWidth) // no width specified, so compute from parent
+ if (!width) // no width specified, so compute from parent
width = max(rect.Width() - posX, 0.0f);
}
if (!GetDimensions(pControlNode, "top", "bottom", "centertop", "centerbottom", "height", rect.Height(), posY, height, minHeight))
if (infoLabels.size())
((CGUITextBox *)control)->SetInfo(infoLabels[0]);
((CGUITextBox *)control)->SetAutoScrolling(pControlNode);
+ ((CGUITextBox *)control)->SetMinHeight(minHeight);
}
else if (type == CGUIControl::GUICONTROL_SELECTBUTTON)
{