mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix incorrect node placement in RTL layout when parent is non-Control canvas item.
This commit is contained in:
parent
e7d2e49688
commit
66ea0006e0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user