diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 5f5c9c44f59..8914c221b9e 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -70,7 +70,7 @@ void ColorPicker::_notification(int p_what) { case NOTIFICATION_PARENTED: { for (int i = 0; i < 4; i++) - set_margin((Margin)i, get_constant("margin")); + set_margin((Margin)i, get_margin((Margin)i) + get_constant("margin")); } break; case NOTIFICATION_VISIBILITY_CHANGED: {