diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-02-12 17:13:55 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-02-12 17:13:55 -0500 |
commit | 2cabf100e22d4f54ebd0ea6ea20b88985a5654c4 (patch) | |
tree | a410a41598caf63aeef39b2d0c40741ac372c10f /indra/llui | |
parent | dce57c6b80b1286889da1a6cadda05c864a31851 (diff) | |
parent | 21be0916a4b707654e99a8c6c734d24e4bb5da7c (diff) |
automated merge viewer2.0->viewer2.0
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llsearcheditor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/llui/llsearcheditor.cpp b/indra/llui/llsearcheditor.cpp index 838dbbd135..491eeeab54 100644 --- a/indra/llui/llsearcheditor.cpp +++ b/indra/llui/llsearcheditor.cpp @@ -80,10 +80,12 @@ LLSearchEditor::LLSearchEditor(const LLSearchEditor::Params& p) if (p.clear_button_visible) { // Set up clear button. - S32 clr_btn_width = getRect().getHeight(); // button is square, and as tall as search editor - LLRect clear_btn_rect(getRect().getWidth() - clr_btn_width, getRect().getHeight(), getRect().getWidth(), 0); LLButton::Params clr_btn_params(p.clear_button); clr_btn_params.name(std::string("clear button")); + S32 clr_btn_top = clr_btn_params.rect.bottom + clr_btn_params.rect.height; + S32 clr_btn_right = getRect().getWidth() - clr_btn_params.pad_right; + S32 clr_btn_left = clr_btn_right - clr_btn_params.rect.width; + LLRect clear_btn_rect(clr_btn_left, clr_btn_top, clr_btn_right, p.clear_button.rect.bottom); clr_btn_params.rect(clear_btn_rect) ; clr_btn_params.follows.flags(FOLLOWS_RIGHT|FOLLOWS_TOP); clr_btn_params.tab_stop(false); |