From: Lyle Johnson Date: 2003-01-16T00:18:42+09:00 Subject: Re: FXRuby spacing and layouts Martin DeMello wrote: > class FXSquare < FXHorizontalFrame > def initialize(parent, size) > super(parent , FRAME_LINE | LAYOUT_FILL_Y) > self.height = size > self.width = size > self.backColor = WHITE > self.squeeze > end > end Change the layout hints for the FXSquare to: super(parent, FRAME_LINE | LAYOUT_FIX_WIDTH | LAYOUT_FIX_HEIGHT) and see if that's the effect you are looking for. By default, child widgets will just assume their minimum width and height. Hope this helps, Lyle