-fix clip+center alignment on Button, fixes #1865
This commit is contained in:
@ -115,6 +115,8 @@ void Button::_notification(int p_what) {
|
|||||||
text_ofs.y+=style->get_offset().y;
|
text_ofs.y+=style->get_offset().y;
|
||||||
} break;
|
} break;
|
||||||
case ALIGN_CENTER: {
|
case ALIGN_CENTER: {
|
||||||
|
if (text_ofs.x<0)
|
||||||
|
text_ofs.x=0;
|
||||||
text_ofs+=icon_ofs;
|
text_ofs+=icon_ofs;
|
||||||
text_ofs+=style->get_offset();
|
text_ofs+=style->get_offset();
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user