I want to create a composite widget that looks like the mock up below. There are multiple labels and images, positioned and spaced with absolute coordinates.
The box is a Container and I’m adding everything inside.
So basically a Container which includes Labels and Buttons positioned with absolute coordinates, and themed with groovy
But some of the things you are using attachChild() (ie: not using the container’s layout) and the button that is misbehaving is using addChild() (ie: is using the container’s layout).
…thought maybe that was the issue. Is there a reason you are using two different approaches or is it a typo?
Edit: incidentally, I don’t think the insets will do anything if the child is not managed by a layout.
What Lemur needs in these cases is a NullLayout that just calculates its bounds from what the children tell it directly and doesn’t push anything down. It probably wouldn’t be hard to write on if you chose to give it a try.
With a little bit extra, it could even support the insets of the children.
As far as I know, no one has made one yet… or if they have they didn’t post it (that I’m aware).
…even though I called it a “Null” layout, it will actually have to do some work. You might be able to start with one of the other simpler layouts (like BoxLayout) and rip things out of it.
Edit: you could also poke a little into why some of your stuff works with attachChild() and one thing doesn’t. Because that’s not right, either.
Edit 2: and maybe a hack is to just add another empty thing with addChild() like a blank label or something and then convert that button back to attachChild().