Hi Sebastian, the problem is that the layout tries to always take all the available space. What I usually do is add an empty row at the bottom newRow: [ :row | ] to take all the excessive space. Peter On Sat, Feb 14, 2015 at 12:52 AM, Sebastian Heidbrink <sheidev@yahoo.de> wrote:
What is wrong with this spec? Why is the checkbox attached to the buttom? I would have expected it to be directly underneath the password label. Is this default behavior and how can I prevent this?
defaultSpec <spec: #default> ^SpecLayout composed newColumn: [ :col | col newRow: [ :row | row add: #usernameLabel ; add: #usernameField ] height: self inputTextHeight; newRow: [ :row | row add: #passwordLabel; add: #passwordField ] height: self inputTextHeight; newRow: [ :row | row add: #showPasswordCheckBox] height: self inputTextHeight ]; yourself
Thank you Sebastian