fn expand(&mut self, ctx: &mut Context) {
        self.expanded = true;
        if let Some(master) = self.master {
            ctx.get_widget(master)
                .set("visibility", Visibility::Visible);
        }

        if let Some(detail) = self.detail {
            ctx.get_widget(detail)
                .set("visibility", Visibility::Visible);
            ctx.get_widget(detail).set::<usize>("column", 1);
        }

        let master_width = *MasterDetail::master_width_ref(&ctx.widget());

        Grid::columns_set(
            &mut ctx.get_widget(self.content_grid),
            Blocks::create().push(master_width).push("*").build(),
        );
    }
// expands the widget (two column layout)
expands the widget (two column layout)
expands the widget ( two column layout )
fn expand(&mut self, ctx: &mut Context) {
        self.expanded = true;
        if let Some(master) = self.master {
            ctx.get_widget(master)
                .set("visibility", Visibility::Visible);
        }
        if let Some(detail) = self.detail {
            ctx.get_widget(detail)
                .set("visibility", Visibility::Visible);
            ctx.get_widget(detail).set::<usize>("column", 1);
        }
        let master_width = *MasterDetail::master_width_ref(&ctx.widget());
        Grid::columns_set(
            &mut ctx.get_widget(self.content_grid),
            Blocks::create().push(master_width).push("*").build(),
        );
    }
fn expand ( & mut self , ctx : & mut Context ) { self . expanded = true ; if let Some ( master ) = self . master { ctx . get_widget ( master ) . set ( " " , Visibility :: Visible ) ; } if let Some ( detail ) = self . detail { ctx . get_widget ( detail ) . set ( " " , Visibility :: Visible ) ; ctx . get_widget ( detail ) . set :: < usize > ( " " , 1 ) ; } let master_width = * MasterDetail :: master_width_ref ( & ctx . widget ( ) ) ; Grid :: columns_set ( & mut ctx . get_widget ( self . content_grid ) , Blocks :: create ( ) . push ( master_width ) . push ( " " ) . build ( ) , ) ; }
expands the widget (two column layout)
expands the widget ( two column layout )
&mut self
ctx
&mut Context