Fixed textentry combobox arrow positioning issues.

This commit is contained in:
Shyotl
2013-07-10 02:15:47 -05:00
parent f9b174c1c2
commit 8f3c1af82d

View File

@@ -94,10 +94,6 @@ LLComboBox::LLComboBox( const std::string& name, const LLRect &rect, const std::
mButton->setFont(LLFontGL::getFontSansSerifSmall());
mButton->setFollows(FOLLOWS_LEFT | FOLLOWS_BOTTOM | FOLLOWS_RIGHT);
mButton->setHAlign( LLFontGL::LEFT );
if(mAllowTextEntry)
{
mButton->setRightHPad(2);
}
addChild(mButton);
@@ -931,6 +927,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;