summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThakee Nathees <thakeenathees@gmail.com>2020-03-16 16:55:09 +0530
committerThakee Nathees <thakeenathees@gmail.com>2020-05-26 08:50:29 +0530
commit9d224ac42920728031ac389dfc11f7fa9e190176 (patch)
tree2676ac03d104317b34524a035629d14299dde767
parentad34c1e5444d4b4b2a70d8148c0a2aaaf7f85eb4 (diff)
colorpicker margin bug fixed
-rw-r--r--scene/gui/color_picker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp
index 88710289c7..84170a65d1 100644
--- a/scene/gui/color_picker.cpp
+++ b/scene/gui/color_picker.cpp
@@ -66,7 +66,7 @@ void ColorPicker::_notification(int p_what) {
} break;
case NOTIFICATION_PARENTED: {
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;
case NOTIFICATION_VISIBILITY_CHANGED: {