-
Notifications
You must be signed in to change notification settings - Fork 271
Conversation
Oh wait, I think I see what you did there. Clever. Let me try this again. |
Much better! I think I'm getting somewhere. The only limitation is only one node can be passed and the rest will be ignored. We can change that though. Perhaps we can check the count of components provided and handle putting them in a |
Okay I changed that. Just committed my rough proposal for handling multiple |
I'll need to simplify and cleanup how multiple children are handled. Will do tomorrow if we move forward with this. |
If there is only one children, it's important that it is not wrapped in anything. The use should be able to: top {
hbox {
button("Button 1")
button("Button 2")
}
} This would keep it in line with how the rest of the builders work. If there are multiple children, we could either throw an exception, or wrap in an hbox or something by default. Unsure what's the best approach, try to experiment a little with it :) You could use an HBox as the fake, and keep it if there are multiple children, and unwrap if there is a single child maybe? I'm going to be gone for most of the day, but hopefully I'll be able to look at it tonight. (I'm GMT+1) |
Hmm.. I think VBox is a better default because of the nature of the BorderPane. |
Pretty much my thoughts too. Will do. And no worries. |
Will get to this later today or tomorrow. But I just wanted to say I used TornadoFX along with RxJava to re-write and enhance a complex UI. It is phenomenal! What took me a week without RxJava, Kotlin, and TornadoFX, I did in less than an hour! My application is actually halfway done now. |
Great! I feel the same way. I'm much more productive with this stack, and it makes me go the extra mile, so I add features in my apps that earlier felt like a chore to implement, so I might have skipped them :) |
You and I have very similar ambitions and goals : ) |
It seems that way. I'm really glad you got involved in TornadoFX :) |
Me too, I'm happy to contribute. And thanks for starting it. This library definitely shows what Kotlin is capable of, and is probably the most exciting one I found yet. |
I think everything is implemented here. Anything else need to be done? |
Sweet! I will review and merge it tonight! Still on vacation so things are going a bit slower than usual. |
Looking good. Nice work, @thomasnield 👍 |
I'm trying to implement
BorderPane
builders and get something to this effect.I'm getting the "dupe children" issue and I think this has to do with builders adding the elements twice due to a parent inadvertently getting targeted. I think you did some sort of trick with the
GridPane
builder by using some "fake"Pane
.What do you think?