bounds.y = y;
if (null == layer) { return; }
layer.save();
Bounds lb = layer.getBounds();
setBounds(new Bounds(x, y, lb.width, lb.height));
Panel parentPanel = getParent();
/* if ((parentPanel != null) && parentPanel.getLayer().equals(layer)) {
log("parentPanel = "+parentPanel.getLayer().getLayerId() + " "
+parentPanel.getLayer().getBounds());
log("layerOffsetX = "+x +" + "+ parentPanel.getLayerOffsetX());
layerOffsetX = x + parentPanel.getLayerOffsetX();
layerOffsetY = y + parentPanel.getLayerOffsetY();
}
layerOffsetX = x;
layerOffsetY = y; */
for (AxisPanel subPanel : subPanels) {
// subPanel.setLayerOffset(layerOffsetX, layerOffsetY);
Bounds subBounds = subPanel.getBounds();
subPanel.setBounds(new Bounds(x, y, subBounds.width, subBounds.height));
}
layer.restore();
}