You can use our vgrow helper though :slightly_smil...
# tornadofx
e
You can use our vgrow helper though ๐Ÿ™‚
a
Is this what you were talking about?
Copy code
class CustomerForm : View("Register Customer") {
    override val root = form { 
        fieldset("Personal Information", FontAwesomeIconView(USER)) {
            field("Name", Orientation.VERTICAL) {
                textarea().vgrow = ALWAYS
            }.vgrow = ALWAYS
        }.vgrow = ALWAYS
    }
}
e
Yeah, I was talking about that
vgrow
helper, but I don't like tacking a property assignment on the same line as the instantiation ๐Ÿ™‚ Looks weird IMO!
a
I am not very good with Kotlin as you might have figured out ๐Ÿ˜‰ Can you show me the best way to do it?
e
Haha, I don't agree Abhinay ๐Ÿ™‚ You definitely know what you're doing ๐Ÿ™‚
fieldset("Personal Information", FontAwesomeIconView(USER)) { field("Name", Orientation.VERTICAL) { textarea() { vgrow = ALWAYS } vgrow = ALWAYS } vgrow = ALWAYS }
It's more verbose, and it looks weird having to do that, but if I were just to rewrite your code, that's what I'd do.
However, I think I built in something to let you grow this thing without having to sprinkle the code with stuff like this.
Just can't remember what it was.
This should do the same thing:
fieldset("Personal Information") { field("Name", VERTICAL) { textarea { vgrow = ALWAYS } } }
๐Ÿ‘ 1
No need for the others ๐Ÿ™‚
@abhinay How did you mange to get "pre" formatted text in your message inside a thread?
a
Aha, that was very clear of you ๐Ÿ˜‰
To format a code segment, just add ``` at the start and end of the code.