summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@laas.fr>2017-10-23 15:40:51 +0200
committerGilles Roudiere <gilles.roudiere@laas.fr>2017-10-24 10:09:39 +0200
commit37d2b17f88e92782cc18bda4f6b2f779442156dd (patch)
tree366912c9dd64c540be17b13ee0c2654fd1d4e451 /scene/gui
parent07ab60a8d7aeae1f2d70ed47feb637d8bac4dea3 (diff)
Fixes the selection rect in item_list drawn not clipped
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/item_list.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 623a110263..3203b38d40 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -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() {