diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-26 11:08:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 11:08:27 +0200 |
commit | da73cd57565180f313996a3218bd60be113d829f (patch) | |
tree | 2676ac03d104317b34524a035629d14299dde767 | |
parent | ad34c1e5444d4b4b2a70d8148c0a2aaaf7f85eb4 (diff) | |
parent | 9d224ac42920728031ac389dfc11f7fa9e190176 (diff) |
Merge pull request #37088 from ThakeeNathees/color-picker-margin-bug-fix
Fix: colorpicker margin bug fixed
-rw-r--r-- | scene/gui/color_picker.cpp | 2 |
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: { |