Commit d6eb9043 authored by josmas's avatar josmas Committed by Gerrit Review System

Fixes a problem resizing Images inside other containers such as Buttons, Canvas, and Screen

background. They used to get clipped instead of resizing correctly, only in the
Designer.

Change-Id: I445c542b5fcc158b28b3306bf97e3a53a4f125a0
parent cca038b0
......@@ -45,6 +45,7 @@ public final class MockComponentsUtil {
DOM.setStyleAttribute(widget.getElement(), "backgroundImage", "url(" + image + ')');
DOM.setStyleAttribute(widget.getElement(), "backgroundRepeat", "no-repeat");
DOM.setStyleAttribute(widget.getElement(), "backgroundPosition", "center");
DOM.setStyleAttribute(widget.getElement(), "backgroundSize", "100% 100%");
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment