Merge branch 'master' of https://github.com/LightDrake/SingularityViewer
This commit is contained in:
@@ -87,10 +87,6 @@ LLComboBox::LLComboBox(const std::string& name, const LLRect& rect, const std::s
|
||||
mButton->setFont(LLFontGL::getFontSansSerifSmall());
|
||||
mButton->setFollows(FOLLOWS_LEFT | FOLLOWS_BOTTOM | FOLLOWS_RIGHT);
|
||||
mButton->setHAlign( LLFontGL::LEFT );
|
||||
if(mAllowTextEntry)
|
||||
{
|
||||
mButton->setRightHPad(2);
|
||||
}
|
||||
|
||||
addChild(mButton);
|
||||
|
||||
@@ -914,6 +910,11 @@ BOOL LLComboBox::handleUnicodeCharHere(llwchar uni_char)
|
||||
void LLComboBox::setAllowTextEntry(BOOL allow, S32 max_chars, BOOL set_tentative)
|
||||
{
|
||||
mAllowTextEntry = allow;
|
||||
if(allow)
|
||||
mButton->setRightHPad(2);
|
||||
else
|
||||
mButton->setRightHPad(LLBUTTON_H_PAD);
|
||||
|
||||
mTextEntryTentative = set_tentative;
|
||||
mMaxChars = max_chars;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user