Merge pull request #9521 from AlexHolly/control-posi-to-posr

removed floor so that global pos works with scale in control
This commit is contained in:
Thomas Herzog 2017-07-11 00:00:43 +02:00 committed by GitHub
commit e2e6c2ba43

View file

@ -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();