public void setContentHeight ( int height ) { int h = height ; if ( max_size . height != - 1 && h > max_size . height ) h = max_size . height ; if ( min_size . height != - 1 && h < min_size . height ) h = min_size . height ; content . height = h ; }
Sets the height of the content while considering the min - and max - height .