Potential fix for issue where layers added directly to a layer had incorrect bounding box coords.
@@ -99,7 +99,10 @@ public class Layer extends Component {
if (component instanceof Layer) {
((Layer) component).setRootScreen(rootScreen);
- addLayerComponent((Layer) component, new Point(0, 0));
+
+ final int x = component.getTiles().getXPosition();
+ final int y = component.getTiles().getYPosition();
+ addLayerComponent((Layer) component, new Point(x, y));
}
// Add the component
