Skip to content

Commit 814187d

Browse files
committed
Merge pull request #97212 from Riteo/picking-the-right-expand-mode
ColorPicker: Ignore TextureRect expand mode during legacy picking
2 parents 851516e + ef48c4d commit 814187d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scene/gui/color_picker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,7 @@ void ColorPicker::_pick_button_pressed_legacy() {
15531553

15541554
picker_texture_rect = memnew(TextureRect);
15551555
picker_texture_rect->set_anchors_preset(Control::PRESET_FULL_RECT);
1556+
picker_texture_rect->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE);
15561557
picker_window->add_child(picker_texture_rect);
15571558
picker_texture_rect->set_default_cursor_shape(CURSOR_POINTING_HAND);
15581559
picker_texture_rect->connect(SceneStringName(gui_input), callable_mp(this, &ColorPicker::_picker_texture_input));

0 commit comments

Comments
 (0)