Skip to content

Commit

Permalink
Merge pull request godotengine#97212 from Riteo/picking-the-right-exp…
Browse files Browse the repository at this point in the history
…and-mode

ColorPicker: Ignore TextureRect expand mode during legacy picking
  • Loading branch information
Repiteo committed Oct 25, 2024
2 parents 851516e + ef48c4d commit 814187d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/color_picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,7 @@ void ColorPicker::_pick_button_pressed_legacy() {

picker_texture_rect = memnew(TextureRect);
picker_texture_rect->set_anchors_preset(Control::PRESET_FULL_RECT);
picker_texture_rect->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE);
picker_window->add_child(picker_texture_rect);
picker_texture_rect->set_default_cursor_shape(CURSOR_POINTING_HAND);
picker_texture_rect->connect(SceneStringName(gui_input), callable_mp(this, &ColorPicker::_picker_texture_input));
Expand Down

0 comments on commit 814187d

Please sign in to comment.