summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-07-09 22:02:14 +0000
committerJames Cook <james@lindenlab.com>2009-07-09 22:02:14 +0000
commit4cbf65be95dfb2320642c018b15a904075283339 (patch)
treebdbc061be1ab53b6eb701dc0722ca526945336b0
parent7fbf5269e088a95733706707c406439b863a38e7 (diff)
DEV-35127 Text placement in an input box is uncomfortably low. Changed UILineEditorVPad default, pushed up the bottom of selection highlight by 1 pixel. Initialized a couple of variables in constructor. Trivial, not reviewed.
-rw-r--r--indra/llui/lllineeditor.cpp5
-rw-r--r--indra/newview/app_settings/settings.xml2
2 files changed, 5 insertions, 2 deletions
diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index f3afadca15..d7c0cf4f7b 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -124,6 +124,8 @@ LLLineEditor::LLLineEditor(const LLLineEditor::Params& p)
mScrollHPos( 0 ),
mTextPadLeft(p.text_pad_left),
mTextPadRight(p.text_pad_right),
+ mMinHPixels(0), // computed in updateTextPadding() below
+ mMaxHPixels(0), // computed in updateTextPadding() below
mCommitOnFocusLost( p.commit_on_focus_lost ),
mRevertOnEsc( TRUE ),
mKeystrokeCallback( p.keystroke_callback() ),
@@ -1554,7 +1556,8 @@ void LLLineEditor::draw()
// draw text
- S32 cursor_bottom = background.mBottom + 1;
+ // With viewer-2 art files, input region is 2 pixels up
+ S32 cursor_bottom = background.mBottom + 2;
S32 cursor_top = background.mTop - 1;
LLColor4 text_color;
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index e53b50c216..d328a3856f 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -8036,7 +8036,7 @@
<key>Type</key>
<string>S32</string>
<key>Value</key>
- <integer>1</integer>
+ <integer>3</integer>
</map>
<key>UIMaxComboWidth</key>
<map>