From 5404cc548af46cdd0e6402aa3651163d37fb2eb3 Mon Sep 17 00:00:00 2001 From: Imbris Date: Fri, 12 Apr 2019 14:57:56 -0400 Subject: [PATCH] remove hidden chat scrollbar Former-commit-id: fc534a2d71bbdbf2989b9772c7d5a64aa44f1ed9 --- voxygen/src/hud/chat.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/voxygen/src/hud/chat.rs b/voxygen/src/hud/chat.rs index 56fbab83a1..400d42ddf6 100644 --- a/voxygen/src/hud/chat.rs +++ b/voxygen/src/hud/chat.rs @@ -106,11 +106,9 @@ impl Chat { .rgba(0.0, 0.0, 0.0, 0.4) .up_from(self.ids.input, 0.0) .set(self.ids.message_box_bg, ui_widgets); - let (mut items, scrollbar) = List::flow_down(self.messages.len()) + let (mut items, _scrollbar) = List::flow_down(self.messages.len()) .middle_of(self.ids.message_box_bg) - .scrollbar_next_to() - .scrollbar_thickness(18.0) - .scrollbar_color(Color::Rgba(0.0, 0.0, 0.0, 1.0)) + .scroll_kids_vertically() .set(self.ids.message_box, ui_widgets); while let Some(item) = items.next(ui_widgets) { item.set( @@ -121,9 +119,6 @@ impl Chat { ui_widgets, ) } - //if let Some(s) = scrollbar { - // s.set(ui_widgets) - //} // Chat Arrow if !self.scrolled_to_bottom(ui_widgets) {