From 25ed0d43661572f788b426bf317312e7f61f3172 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Mon, 16 Mar 2020 16:55:09 +0530 Subject: [PATCH] colorpicker margin bug fixed (cherry picked from commit 9d224ac42920728031ac389dfc11f7fa9e190176) --- scene/gui/color_picker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {