SL-20205 Clipping of label "Water"
parent
1a89ff73ac
commit
f059ace6f7
|
|
@ -1550,7 +1550,13 @@ S32 LLTextBase::getLeftOffset(S32 width)
|
|||
case LLFontGL::HCENTER:
|
||||
return mHPad + llmax(0, (mVisibleTextRect.getWidth() - width - mHPad) / 2);
|
||||
case LLFontGL::RIGHT:
|
||||
return mVisibleTextRect.getWidth() - width;
|
||||
{
|
||||
// Font's rendering rounds string size, if value gets rounded
|
||||
// down last symbol might not have enough space to render,
|
||||
// compensate by adding an extra pixel as padding
|
||||
const S32 right_padding = 1;
|
||||
return llmax(mHPad, mVisibleTextRect.getWidth() - width - right_padding);
|
||||
}
|
||||
default:
|
||||
return mHPad;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@
|
|||
follows="left|top"
|
||||
layout="topleft"
|
||||
height="24"
|
||||
width="52"
|
||||
width="53"
|
||||
left_delta="2"
|
||||
top_pad="1"
|
||||
halign="right"
|
||||
|
|
@ -271,7 +271,7 @@
|
|||
follows="left|top"
|
||||
enabled="false"
|
||||
top_delta="3"
|
||||
left_pad="21"
|
||||
left_pad="20"
|
||||
height="20"
|
||||
layout="topleft"
|
||||
name="edt_invname_alt1"
|
||||
|
|
@ -305,7 +305,7 @@
|
|||
follows="left|top"
|
||||
layout="topleft"
|
||||
height="24"
|
||||
width="52"
|
||||
width="53"
|
||||
left_delta="2"
|
||||
top_pad="1"
|
||||
halign="right"
|
||||
|
|
@ -317,7 +317,7 @@
|
|||
follows="left|top"
|
||||
enabled="false"
|
||||
top_delta="3"
|
||||
left_pad="21"
|
||||
left_pad="20"
|
||||
height="20"
|
||||
layout="topleft"
|
||||
name="edt_invname_alt2"
|
||||
|
|
@ -351,7 +351,7 @@
|
|||
follows="left|top"
|
||||
layout="topleft"
|
||||
height="25"
|
||||
width="52"
|
||||
width="53"
|
||||
left_delta="2"
|
||||
top_pad="1"
|
||||
halign="right"
|
||||
|
|
@ -363,7 +363,7 @@
|
|||
follows="left|top"
|
||||
enabled="false"
|
||||
top_delta="3"
|
||||
left_pad="21"
|
||||
left_pad="20"
|
||||
height="20"
|
||||
layout="topleft"
|
||||
name="edt_invname_alt3"
|
||||
|
|
@ -460,7 +460,7 @@
|
|||
follows="left|top"
|
||||
layout="topleft"
|
||||
height="12"
|
||||
width="52"
|
||||
width="53"
|
||||
left_delta="2"
|
||||
top_pad="2"
|
||||
halign="right"
|
||||
|
|
@ -477,7 +477,7 @@
|
|||
mouse_opaque="false"
|
||||
visible="true"
|
||||
top_delta="-3"
|
||||
left_pad="2"/>
|
||||
left_pad="1"/>
|
||||
<line_editor
|
||||
follows="left|top"
|
||||
enabled="false"
|
||||
|
|
@ -516,7 +516,7 @@
|
|||
follows="left|top"
|
||||
layout="topleft"
|
||||
height="12"
|
||||
width="52"
|
||||
width="53"
|
||||
left_delta="2"
|
||||
top_pad="2"
|
||||
halign="right"
|
||||
|
|
@ -533,7 +533,7 @@
|
|||
mouse_opaque="false"
|
||||
visible="true"
|
||||
top_delta="-3"
|
||||
left_pad="2"/>
|
||||
left_pad="1"/>
|
||||
<line_editor
|
||||
follows="left|top"
|
||||
enabled="false"
|
||||
|
|
|
|||
Loading…
Reference in New Issue