aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Haas2017-11-13 17:08:23 +0100
committerGitHub2017-11-13 17:08:23 +0100
commitab0f7717e71efef3f09faedf66ad5ad38fefe99f (patch)
treea92eed403e4ebeff488954a35c7be8214a8a3449
parent3732b2318e8a4942e8202f1797527220a5ae01a0 (diff)
parent710c87ec995f93c87f71281eb9b1a9f7ee7f7464 (diff)
downloadgodot-ab0f7717e71efef3f09faedf66ad5ad38fefe99f.tar.gz
godot-ab0f7717e71efef3f09faedf66ad5ad38fefe99f.tar.zst
godot-ab0f7717e71efef3f09faedf66ad5ad38fefe99f.zip
-rw-r--r--scene/gui/item_list.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index 623a11026..e9e9dcc85 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -754,7 +754,7 @@ void ItemList::_notification(int p_what) {
int width = size.width - bg->get_minimum_size().width;
if (scroll_bar->is_visible()) {
- width -= mw + bg->get_margin(MARGIN_RIGHT);
+ width -= mw;
}
draw_style_box(bg, Rect2(Point2(), size));
@@ -1107,7 +1107,7 @@ void ItemList::_notification(int p_what) {
}
for (int i = 0; i < separators.size(); i++) {
- draw_line(Vector2(bg->get_margin(MARGIN_LEFT), base_ofs.y + separators[i]), Vector2(size.width - bg->get_margin(MARGIN_RIGHT), base_ofs.y + separators[i]), guide_color);
+ draw_line(Vector2(bg->get_margin(MARGIN_LEFT), base_ofs.y + separators[i]), Vector2(width, base_ofs.y + separators[i]), guide_color);
}
}
}