git.lucas.co / cce-cloud
cloud storage client
git clone https://git.lucas.co/cce-cloud.git

commitb8c5f6aeeafd27712dcb2a8fed3ff12acdd90d86
parent3ea1bdb2f6
authorLucas Galante <[email protected]>
date2026-09-08 18:09
chore: label_strip replaces widget::label_offset

cce-ui dropped the free function; the block height is content plus the
widget's own label strip.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

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

diff --git a/src/json_layout.rs b/src/json_layout.rs
index 12da715..8d7d6a2 100644
--- a/src/json_layout.rs
+++ b/src/json_layout.rs
@@ -310,7 +310,7 @@ impl JsonLayoutWidget {
             let current_y = &mut page_current_y[p_idx];
             w_state.x = bx + pad_x;
 
-            let top_room = cce_ui::widget::label_offset(w_state.widget.as_dyn());
+            let top_room = w_state.widget.as_dyn().label_strip();
 
             let scroll_offset = self.page_scroll_y.get(p_idx).cloned().unwrap_or(0.0);
             w_state.y = by + *current_y - scroll_offset;