I do not get the image, but I know what happened :)

On 11 Nov 2013, at 20:08, Bahman Movaqar <[email protected]> wrote:

> Hi all,
> 
> Let's assume I have a window like the one in episode 2 of the tutorial. Some 
> unexpected (from the user's perspective) behaviour happens when I manually 
> resize the window.  A snapshot is worth a thousand words (and I'm going to 
> put two snapshots here!).
> 
> This is the fresh window that I just opened:
> 
> 
> 
> The same window after resizing:
> 
> 
> 
> So this is my understanding:
> When a window is resized, every Row/ColumnLayout distributes the width and 
> height evenly among any widget or nested layouts it contains.  In turn, 
> widgets try to fill as much space as possible.  Therefore after resizing text 
> box and button have become so huge and the space between the radio buttons 
> has increased so much.
> Is that correct?

It’s correct in the sense it is expected regarding to the layout you use :)

> If yes, I have a couple of points to mention:
> A text box, specially in the case of TextModel and TextInputFieldModel, where 
> it's basically a single line entry (ENTER is not allowed), should not change 
> height (growing width is understandable and desired).  The height of a text 
> box (specially a single line one) should only be calculated based on the font 
> family and font size.
TextModel is for more that one line :)
TextInputField could eventually be forced to be one line, but I think it’s too 
much of a restriction

> A button should not change height and width, unless specifically mentioned 
> otherwise.
Why ?
> It's not usually desirable that the spacing between radio buttons change.
That’s true :) 
But how to know that two radio buttons are close one to the other ?

> Usually there's a way to specify how to distribute the width/height between 
> layouts and widgets inside a layout (usually based on a percentage). 
There in spec as well :)
You can have a look at:
add:origin:corner:offsetOrigin:offsetCorner:

Ben
> I'd appreciate if anyone could shed a light here; specially Benjamin the 
> Undocumenter :-)
>  -- 
> Bahman Movaqar  (http://BahmanM.com)
> 
> ERP Evaluation, Implementation & Deployment Consultant
> PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)

Reply via email to