fn changed(&mut self, ctx: &Context<Self>) -> bool {
        let total_height = ctx.props().total_height(ctx);
        self.needs_rerender =
            self.needs_rerender || (self.total_height - total_height).abs() > 0.1f64;
        self.total_height = total_height;
        ctx.link().send_message_batch(vec![
            ScrollPanelMsg::UpdateViewportDimensions,
            ScrollPanelMsg::CalculateWindowContent,
        ]);

        false
    }
/// If the new total row height is different than last time this component
/// was rendered, we need to double-render to read the container's
/// potentially updated height.
If the new total row height is different than last time this component
was rendered, we need to double-render to read the container's
potentially updated height.
If the new total row height is different than last time this component was rendered we need to double - render to read the container ' s potentially updated height .
fn changed(&mut self, ctx: &Context<Self>) -> bool {
        let total_height = ctx.props().total_height(ctx);
        self.needs_rerender =
            self.needs_rerender || (self.total_height - total_height).abs() > 0.1f64;
        self.total_height = total_height;
        ctx.link().send_message_batch(vec![
            ScrollPanelMsg::UpdateViewportDimensions,
            ScrollPanelMsg::CalculateWindowContent,
        ]);
        false
    }
fn changed ( & mut self , ctx : & Context < Self > ) -> bool { let total_height = ctx . props ( ) . total_height ( ctx ) ; self . needs_rerender = self . needs_rerender || ( self . total_height - total_height ) . abs ( ) > 0.1f64 ; self . total_height = total_height ; ctx . link ( ) . send_message_batch ( vec ! [ ScrollPanelMsg UpdateViewportDimensions ScrollPanelMsg CalculateWindowContent ] ) ; false }
If the new total row height is different than last time this component
was rendered, we need to double-render to read the container's
potentially updated height.
If the new total row height is different than last time this component was rendered we need to double - render to read the container ' s potentially updated height .
&mut self
ctx
&Context<Self>
&mut self
ctx
&Context<Self>