Merge pull request #12351 from groud/fix_item_list_selection_clipping

Fixes the selection rect in item_list drawn not clipped
This commit is contained in:
Rémi Verschelde 2017-10-30 23:09:49 +01:00 committed by GitHub
commit 4e753971c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -781,9 +781,7 @@ void ItemList::_notification(int p_what) {
}
if (has_focus()) {
VisualServer::get_singleton()->canvas_item_add_clip_ignore(get_canvas_item(), true);
draw_style_box(get_stylebox("bg_focus"), Rect2(Point2(), size));
VisualServer::get_singleton()->canvas_item_add_clip_ignore(get_canvas_item(), false);
}
if (shape_changed) {
@ -1429,7 +1427,6 @@ ItemList::ItemList() {
allow_rmb_select = false;
icon_scale = 1.0f;
set_clip_contents(true);
}
ItemList::~ItemList() {