mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Use BitField<> hint for ArrayFormat
This was missing in the conversion of bitflags to BitField<>.
This commit is contained in:
@@ -327,10 +327,10 @@ void ScrollContainer::_reposition_children() {
|
||||
Size2 minsize = c->get_combined_minimum_size();
|
||||
|
||||
Rect2 r = Rect2(-Size2(get_h_scroll(), get_v_scroll()), minsize);
|
||||
if (c->get_h_size_flags() & SIZE_EXPAND) {
|
||||
if (c->get_h_size_flags().has_flag(SIZE_EXPAND)) {
|
||||
r.size.width = MAX(size.width, minsize.width);
|
||||
}
|
||||
if (c->get_v_size_flags() & SIZE_EXPAND) {
|
||||
if (c->get_v_size_flags().has_flag(SIZE_EXPAND)) {
|
||||
r.size.height = MAX(size.height, minsize.height);
|
||||
}
|
||||
r.position += ofs;
|
||||
|
||||
Reference in New Issue
Block a user