git.lucas.co / cce-gallery
widget gallery and compositor test bench

commitf6efc08192d81b62e69c15d382011a3e41a341c2
parent84869fc021
authorLucas Galante <[email protected]>
date2026-07-05 15:11
feat: query rangeslider height dynamically from cce-ui layout

 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index e1b81b8..4bdba59 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1868,7 +1868,7 @@ fn demo_positions(sw: f32, sh: f32, sidebar_w: f32, layout_idx: usize, widgets:
         (12, 200.0, slh + label_off(12), slh),
         (13, 140.0, sph + label_off(13), sph),
         (36, 200.0, ddh + label_off(36), ddh),
-        (30, 200.0, slh + label_off(30), slh),
+        (30, 200.0, cce_ui::layout::rangeslider_height() + label_off(30), cce_ui::layout::rangeslider_height()),
         (31, 200.0, 100.0 + label_off(31), 100.0),
         (37, 120.0, 120.0 + label_off(37), 120.0),
         (47, 120.0, bh + label_off(47), bh),