colorpicker margin bug fixed

(cherry picked from commit 9d224ac429)
This commit is contained in:
Thakee Nathees 2020-03-16 16:55:09 +05:30 committed by Rémi Verschelde
parent e0a7b2ec97
commit 25ed0d4366

View file

@ -70,7 +70,7 @@ void ColorPicker::_notification(int p_what) {
case NOTIFICATION_PARENTED: { case NOTIFICATION_PARENTED: {
for (int i = 0; i < 4; i++) 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; } break;
case NOTIFICATION_VISIBILITY_CHANGED: { case NOTIFICATION_VISIBILITY_CHANGED: {