Merge pull request #37088 from ThakeeNathees/color-picker-margin-bug-fix

Fix: colorpicker margin bug fixed
This commit is contained in:
Rémi Verschelde 2020-05-26 11:08:27 +02:00 committed by GitHub
commit da73cd5756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ void ColorPicker::_notification(int p_what) {
} break; } break;
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_theme_constant("margin")); set_margin((Margin)i, get_margin((Margin)i) + get_theme_constant("margin"));
} }
} break; } break;
case NOTIFICATION_VISIBILITY_CHANGED: { case NOTIFICATION_VISIBILITY_CHANGED: {