Merge pull request #77901 from bruvzg/rtl_canvas

Fix incorrect node placement in RTL layout when parent is non-Control canvas item.
This commit is contained in:
Rémi Verschelde 2023-06-09 12:15:32 +02:00
commit 4d05edd75d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1712,7 +1712,7 @@ void Control::_size_changed() {
}
if (is_layout_rtl()) {
new_pos_cache.x = parent_rect.size.x - new_pos_cache.x - new_size_cache.x;
new_pos_cache.x = parent_rect.size.x + 2 * parent_rect.position.x - new_pos_cache.x - new_size_cache.x;
}
if (minimum_size.height > new_size_cache.height) {