aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/item_list.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-09 15:50:08 -0300
committerJuan Linietsky2017-01-09 15:50:59 -0300
commite9bb65db815b593037a573c1c7a78e95b7550cb0 (patch)
tree3ccb0b04272cf36701028a1f662c39cc1bd9bdc1 /scene/gui/item_list.cpp
parent0e635b683b84417b0970218ce720bbc553205ca6 (diff)
downloadgodot-e9bb65db815b593037a573c1c7a78e95b7550cb0.tar.gz
godot-e9bb65db815b593037a573c1c7a78e95b7550cb0.tar.zst
godot-e9bb65db815b593037a573c1c7a78e95b7550cb0.zip
-All types have editable script now in properties
-Changed clip to a property in Control which can be set by the user
Diffstat (limited to 'scene/gui/item_list.cpp')
-rw-r--r--scene/gui/item_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 5a9b1173d..ece6171b6 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -788,7 +788,6 @@ void ItemList::_notification(int p_what) {
if (p_what==NOTIFICATION_DRAW) {
- VS::get_singleton()->canvas_item_set_clip(get_canvas_item(),true);
Ref<StyleBox> bg = get_stylebox("bg");
int mw = scroll_bar->get_minimum_size().x;
@@ -1402,6 +1401,7 @@ ItemList::ItemList() {
allow_rmb_select=false;
icon_scale = 1.0f;
+ set_clip_contents(true);
}
ItemList::~ItemList() {