model_server/gala/src/view.cxx
// SetBottom - Resize the view to have the bottom at the given location.
//    If the new Bottom is beyond the old Top, 
//        This view's size is reduced to zero.
//        If appropriate, the Left neighbor is also adjusted.
Resize the view to have the bottom at the given location.
If the new Bottom is beyond the old Top,
This view's size is reduced to zero.
If appropriate, the Left neighbor is also adjusted.
Resize the view to have the bottom at the given location . If the new Bottom is beyond the old Top This view ' s size is reduced to zero . If appropriate the Left neighbor is also adjusted .
void View::SetBottom (const int newBottom)
{
    if (newBottom > myRect.y + myRect.h) {
        if (ParentView &&
            (ParentView->view_type == VerticalGroupView) &&
            LeftView && LeftView->GetSash() ) {
            LeftView->GetSash()->SetY(newBottom + SASH_SIZE +
                      ParentView->GetAbsoluteY(), gside_bottom);
        }
        MoveView(myRect.x, newBottom, myRect.w, 0);
    } else {
        int newHeight = myRect.h - (newBottom - myRect.y);
        MoveView(myRect.x, newBottom, myRect.w, newHeight);
    }
}
void View :: SetBottom ( const int newBottom ) { if ( newBottom > myRect . y + myRect . h ) { if ( ParentView && ( ParentView -> view_type == VerticalGroupView ) && LeftView && LeftView -> GetSash ( ) ) { LeftView -> GetSash ( ) -> SetY ( newBottom + SASH_SIZE + ParentView -> GetAbsoluteY ( ) , gside_bottom ) ; } MoveView ( myRect . x , newBottom , myRect . w , 0 ) ; } else { int newHeight = myRect . h - ( newBottom - myRect . y ) ; MoveView ( myRect . x , newBottom , myRect . w , newHeight ) ; } }
SetBottom - Resize the view to have the bottom at the given location.
SetBottom - Resize the view to have the bottom at the given location .
// If the new bottom is beyond the old top, ... // ... Set height to Zero and See if left neighbor needs to be adjusted.. // If this is a Vertical Group and ... //  ... the left neighbor has a sash, move it too. // Move to the new location with a zero height. // Else, move the view.