Skip to content

Help needed for div height #204

@TuntematonSotilas

Description

@TuntematonSotilas

Hello,
I would like to get a div a height so I do this :

fn get_height(el: &web_sys::Node) -> i32 {	
    let html_el = seed::to_html_el(&el);	
    let h = html_el.client_height();	
    log!("test {:?}", h);	
    h	
}

Wich works.
But then I would like to use this function on an update message
(for example a message that is lauched on mounting the component)
How to do this ?

Tanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions