You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
I've noticed that the Scrollable widget on iced_web applies max_with to it's content, but not on itself. Which results in having the width of the scrollable DIV to not being limited by the maximum width.
This is a different behavior than iced_native.
Code to reproduce:
use iced::{
scrollable,Container,Element,Length,Sandbox,Scrollable,Settings,Text};fnmain() -> iced::Result{ScrollTest::run(Settings::default())}structScrollTest{state: scrollable::State,}#[derive(Clone,Debug)]enumMessage{}implSandboxforScrollTest{typeMessage = Message;fnnew() -> Self{ScrollTest{state: scrollable::State::new(),}}fntitle(&self) -> String{String::from("Scrollable Test")}fnupdate(&mutself, _:Self::Message){}fnview(&mutself) -> Element<'_,Self::Message>{Container::new(Scrollable::new(&mutself.state).max_width(600).push(Text::new("This is a line").width(Length::Fill)).push(Text::new("This is a line").width(Length::Fill)).push(Text::new("This is a line").width(Length::Fill)).push(Text::new("This is a line").width(Length::Fill)).push(Text::new("This is a line").width(Length::Fill)).push(Text::new("This is a line").width(Length::Fill)).push(Text::new("This is a line").width(Length::Fill))).center_x().center_y().width(Length::Fill).height(Length::Fill).into()}}
iced_native on Linux:
iced_web without maximum width:
iced_web with maximum width:
The text was updated successfully, but these errors were encountered:
Hello,
I've noticed that the
Scrollable
widget oniced_web
appliesmax_with
to it's content, but not on itself. Which results in having the width of the scrollableDIV
to not being limited by the maximum width.This is a different behavior than
iced_native
.Code to reproduce:
iced_native
on Linux:iced_web
without maximum width:iced_web
with maximum width:The text was updated successfully, but these errors were encountered: