Spec icon indicating copy to clipboard operation
Spec copied to clipboard

Question about GridLayout

Open Ducasse opened this issue 3 years ago • 3 comments

Hi esteban

defaultLayout

	^ SpGridLayout new
  add: 'Name:' at: 1@1;
  add: #nameText  at: 2@1;
  add: 'Password:' at: 1@2;
  add: #passwordText at: 2@2;  
  add: #acceptButton at: 1@3;
  add: #cancelButton at: 2@3 span: 2@3;
  add: 'test label' at: 1@4;
  yourself

produces correctly I think Capture 2023-02-16 at 20 21 14

Ducasse avatar Feb 16 '23 19:02 Ducasse

Now if I change

defaultLayout

	^ SpGridLayout new
  add: 'Name:' at: 1@1;
  add: #nameText  at: 2@1;
  add: 'Password:' at: 1@2;
  add: #passwordText at: 2@2;  
  add: #acceptButton at: 1@3;
  add: #cancelButton at: 2@3 span: 2@3;
  add: 'test label' at: 1@6;
  yourself

Ducasse avatar Feb 16 '23 19:02 Ducasse

Capture 2023-02-16 at 20 22 09

Ducasse avatar Feb 16 '23 19:02 Ducasse

I do not get why the vertical span is not respected. @estebanlm?

Ducasse avatar Feb 16 '23 19:02 Ducasse