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?
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.
- A button should not change height and width,
unless specifically mentioned otherwise.
- It's not usually desirable that the spacing
between radio buttons change.
- 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).
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)