@Override protected LayoutData createLayoutData (float hintX, float hintY) {
return new LayoutData() {
@Override public Dimension computeSize (float hintX, float hintY) {
CanvasImage image = _image.get();
return image == null ? new Dimension(0, 0) :
new Dimension(image.width(), image.height());
}
};
}
@Override protected void wasAdded () {