edvin
04/18/2018, 8:37 AMabhinay
04/18/2018, 8:39 AMedvin
04/18/2018, 8:40 AMabhinay
04/18/2018, 8:41 AMmikehearn
04/18/2018, 8:42 AMmikehearn
04/18/2018, 8:42 AMmikehearn
04/18/2018, 8:43 AMmikehearn
04/18/2018, 8:43 AMmikehearn
04/18/2018, 8:43 AMmikehearn
04/18/2018, 8:44 AMabhinay
04/18/2018, 8:46 AMedvin
04/18/2018, 9:42 AMedvin
04/18/2018, 9:42 AMmikehearn
04/18/2018, 9:45 AMedvin
04/18/2018, 9:51 AMaltavir
04/18/2018, 12:39 PMlazyPolulate
for tree view and a bit confused. By default leafCheck: (LazyTreeItem<T>) -> Boolean = { it.hasChildren() }
which means it should return true
on nodes and false
on leaves. The implementation on the contrary expects it to be false
on nodes.
I have and object, that can generate its children lazily and also check if there are children. And the same goes for its children. When I write
lazyPopulate( leafCheck = { it.value.hasChildren }) {
it.value.children
}
I all top level nodes as leafs, but when I flip it.value.hasChildren
, I get top level nodes as nodes, but second level nodes as leafs. What is wrong?mariofelesdossantosjr
04/18/2018, 6:22 PMmariofelesdossantosjr
04/18/2018, 6:26 PMcarlw
04/18/2018, 7:08 PMmariofelesdossantosjr
04/18/2018, 7:13 PMcarlw
04/18/2018, 8:48 PMRuckus
04/18/2018, 8:54 PMsizeToScene
and centerOnScreen
default to false, so you could just use
this@MainView.replaceWith(LoginView::class, ViewTransition.FadeThrough(1.seconds))
carlw
04/18/2018, 8:57 PMRuckus
04/18/2018, 8:57 PMcarlw
04/19/2018, 12:10 AMRuckus
04/19/2018, 2:28 AManidotnet
04/19/2018, 3:35 AMpike
04/19/2018, 7:13 AMmikehearn
04/19/2018, 7:34 AMmikehearn
04/19/2018, 7:34 AM