when adding an item to a content pane at build time:
lbl := Label{it.text = "test"} p := InsetPane { lbl, }
By default first item added gets assigned to content if later i remove and then add (replace) the label it doesn't not seem to get assigned to content (ignored).
p.remove(lbl) p.add(Label{{it.text="Test2"})
If i specifically use content, it works:
p.content = Label{{it.text="Test2"}
Not a big deal but that might be a bug ?
Login or Signup to reply.
tcolar Thu 3 Jan 2013
when adding an item to a content pane at build time:
By default first item added gets assigned to content if later i remove and then add (replace) the label it doesn't not seem to get assigned to content (ignored).
If i specifically use content, it works:
Not a big deal but that might be a bug ?