[yew-devel] [PATCH yew-widget-toolkit v2 07/12] touch: scaffold: fix overflow setting for body

Dominik Csapak d.csapak at proxmox.com
Mon Jun 30 10:25:04 CEST 2025


otherwise the content of the body will exceed the viewport and widget
that depend on it being scrolled won't work properly (like the List
widget that does virtual scrolling)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 src/touch/scaffold.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/touch/scaffold.rs b/src/touch/scaffold.rs
index e5b4741..bd271d1 100644
--- a/src/touch/scaffold.rs
+++ b/src/touch/scaffold.rs
@@ -4,6 +4,7 @@ use yew::html::IntoPropValue;
 use yew::prelude::*;
 use yew::virtual_dom::{Key, VComp, VNode};
 
+use crate::css::FlexFit;
 use crate::props::{ContainerBuilder, WidgetBuilder, WidgetStyleBuilder};
 use crate::widget::{Column, Container};
 
@@ -107,7 +108,7 @@ impl Component for PwtScaffold {
 
         let body = Column::new()
             .class("pwt-position-relative")
-            .class("pwt-flex-fill")
+            .class(FlexFit)
             .with_optional_child(props.body.clone())
             .with_optional_child(positioned_fab);
 
-- 
2.39.5





More information about the yew-devel mailing list