Giter Site home page Giter Site logo

Comments (4)

genusistimelord avatar genusistimelord commented on July 1, 2024 1

sorry been a bit busy. I will take a look when I get some time.

from iced_aw.

TheQuantumPhysicist avatar TheQuantumPhysicist commented on July 1, 2024

Can someone please confirm that this is a bug? I was told to put this in here but never got that confirmation.

from iced_aw.

genusistimelord avatar genusistimelord commented on July 1, 2024

seems changing the view to be

pub fn view(
        &self,
        backend_controller: &NodeBackendController,
    ) -> Element<'_, Message, iced::Renderer> {
        let c = iced::widget::column![
            iced::widget::row!(self.main_menu
                .view(backend_controller)
                .map(Message::MenuMessage)),
                iced::widget::row!(self.main_widget
                .view(backend_controller)
                .map(Message::MainWidgetMessage))
        ];

        c.into()
    }
    

fixes the issue. This might be because the Menu and other Views cant be within a column together if they are Fill or what not. Please give this a try and let me know what else might need to be looked at.

from iced_aw.

TheQuantumPhysicist avatar TheQuantumPhysicist commented on July 1, 2024

Yep. This fixes the issue. Thank you!

My opinion: This should be disallowed at compile-time with type-safety. There should be a class of types allowed in column! and row! that only lead to correct results.

Feel free to close this issue, or keep it open to address this problem with type-safety. Cheers!

from iced_aw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.