Forráskód Böngészése

colorpicker margin bug fixed

Thakee Nathees 5 éve
szülő
commit
9d224ac429
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      scene/gui/color_picker.cpp

+ 1 - 1
scene/gui/color_picker.cpp

@@ -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: {