-fix clip+center alignment on Button, fixes #1865
This commit is contained in:
parent
e090c06ae2
commit
d1e4d6e997
1 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,8 @@ void Button::_notification(int p_what) {
|
|||
text_ofs.y+=style->get_offset().y;
|
||||
} break;
|
||||
case ALIGN_CENTER: {
|
||||
if (text_ofs.x<0)
|
||||
text_ofs.x=0;
|
||||
text_ofs+=icon_ofs;
|
||||
text_ofs+=style->get_offset();
|
||||
} break;
|
||||
|
|
Loading…
Reference in a new issue