diff options
| author | alexholly | 2017-07-05 23:01:26 +0200 |
|---|---|---|
| committer | AlexHolly | 2017-07-08 21:04:04 +0200 |
| commit | 3b5ac579a94a588907ec88ced8de1c60b6f737fb (patch) | |
| tree | 0b6464cd92bd62ea1f3c3a391525f0d176a396bc | |
| parent | e577c5b0705168177943fcdf9a0b66c1f8f864f3 (diff) | |
| download | godot-3b5ac579a94a588907ec88ced8de1c60b6f737fb.tar.gz godot-3b5ac579a94a588907ec88ced8de1c60b6f737fb.tar.zst godot-3b5ac579a94a588907ec88ced8de1c60b6f737fb.zip | |
removed floor so that global pos works with scale
| -rw-r--r-- | scene/gui/control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index bf8d81d4a..e9e299ffc 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -1229,8 +1229,8 @@ void Control::_size_changed() { } } - Point2 new_pos_cache = Point2(margin_pos[0], margin_pos[1]).floor(); - Size2 new_size_cache = Point2(margin_pos[2], margin_pos[3]).floor() - new_pos_cache; + Point2 new_pos_cache = Point2(margin_pos[0], margin_pos[1]); + Size2 new_size_cache = Point2(margin_pos[2], margin_pos[3]) - new_pos_cache; Size2 minimum_size = get_combined_minimum_size(); |
