GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
style: adjust List rect to encompass the search box inside the list container background and borders
src/widget/container/scrolling_list.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/widget/container/scrolling_list.rs b/src/widget/container/scrolling_list.rs
index a796c7f..64b586e 100644
--- a/src/widget/container/scrolling_list.rs
+++ b/src/widget/container/scrolling_list.rs
@@ -247,7 +247,7 @@ impl Element for List {
fn base_mut(&mut self) -> Option<&mut Widget> { Some(&mut self.base) }
fn rect(&self) -> (f32, f32, f32, f32) {
- self.scroll_box.rect()
+ (self.base.x, self.base.y, self.base.w, self.base.h)
}
fn set_rect(&mut self, x: f32, y: f32, w: f32, h: f32) {