|
@@ -822,7 +822,7 @@ void LineEdit::_notification(int p_what) {
|
|
case HORIZONTAL_ALIGNMENT_FILL:
|
|
case HORIZONTAL_ALIGNMENT_FILL:
|
|
case HORIZONTAL_ALIGNMENT_LEFT: {
|
|
case HORIZONTAL_ALIGNMENT_LEFT: {
|
|
if (rtl) {
|
|
if (rtl) {
|
|
- x_ofs = MAX(style->get_margin(SIDE_LEFT), int(size.width - style->get_margin(SIDE_RIGHT) - (text_width)));
|
|
|
|
|
|
+ x_ofs = MAX(style->get_margin(SIDE_LEFT), int(size.width - Math::ceil(style->get_margin(SIDE_RIGHT) + (text_width))));
|
|
} else {
|
|
} else {
|
|
x_ofs = style->get_offset().x;
|
|
x_ofs = style->get_offset().x;
|
|
}
|
|
}
|
|
@@ -838,7 +838,7 @@ void LineEdit::_notification(int p_what) {
|
|
if (rtl) {
|
|
if (rtl) {
|
|
x_ofs = style->get_offset().x;
|
|
x_ofs = style->get_offset().x;
|
|
} else {
|
|
} else {
|
|
- x_ofs = MAX(style->get_margin(SIDE_LEFT), int(size.width - style->get_margin(SIDE_RIGHT) - (text_width)));
|
|
|
|
|
|
+ x_ofs = MAX(style->get_margin(SIDE_LEFT), int(size.width - Math::ceil(style->get_margin(SIDE_RIGHT) + (text_width))));
|
|
}
|
|
}
|
|
} break;
|
|
} break;
|
|
}
|
|
}
|