pub fn fit(&self) {
        let inner = self.inner.borrow();
        if inner.base.is_null() {
            panic!("Grid layout is not bound to a parent control.")
        }

        let (w, h) = unsafe { wh::get_window_size(inner.base) };
        self.update_layout(w, h);
    }
/// Resize the layout to fit the parent window size
///
/// Panic:
///   - The layout must have been successfully built otherwise this function will panic.
Resize the layout to fit the parent window size
Panic:
The layout must have been successfully built otherwise this function will panic.
Resize the layout to fit the parent window size Panic : The layout must have been successfully built otherwise this function will panic .
pub fn fit(&self) {
        let inner = self.inner.borrow();
        if inner.base.is_null() {
            panic!("Grid layout is not bound to a parent control.")
        }
        let (w, h) = unsafe { wh::get_window_size(inner.base) };
        self.update_layout(w, h);
    }
pub fn fit ( & self ) { let inner = self . inner . borrow ( ) ; if inner . base . is_null ( ) { panic ! ( " " ) } let ( w , h ) = unsafe { wh :: get_window_size ( inner . base ) } ; self . update_layout ( w , h ) ; }
Resize the layout to fit the parent window size
Panic:
 The layout must have been successfully built otherwise this function will panic.
Resize the layout to fit the parent window size Panic : The layout must have been successfully built otherwise this function will panic .
&self