In (readonly) combo_boxes and flyout_buttons allow use of the font attribute.
This commit is contained in:
@@ -160,6 +160,9 @@ LLView* LLComboBox::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *
|
||||
LLComboBox* combo_box = new LLComboBox("combo_box", rect, label);
|
||||
combo_box->setAllowTextEntry(allow_text_entry, max_chars);
|
||||
|
||||
if (LLFontGL* font = selectFont(node))
|
||||
combo_box->mButton->setFont(font);
|
||||
|
||||
const std::string& contents = node->getValue();
|
||||
|
||||
if (contents.find_first_not_of(" \n\t") != contents.npos)
|
||||
|
||||
@@ -107,6 +107,9 @@ LLView* LLFlyoutButton::fromXML(LLXMLNodePtr node, LLView* parent, LLUICtrlFacto
|
||||
flyout_button->mListPosition = ABOVE;
|
||||
}
|
||||
|
||||
if (LLFontGL* font = selectFont(node))
|
||||
flyout_button->mActionButton->setFont(font);
|
||||
|
||||
flyout_button->initFromXML(node, parent);
|
||||
|
||||
for (LLXMLNodePtr child = node->getFirstChild(); child.notNull(); child = child->getNextSibling())
|
||||
|
||||
Reference in New Issue
Block a user