LocationValue size;
}
private Location getLocation(WidgetInfo widget, boolean horizontal) {
UiBinderContext context = widget.getContext();
DocumentElement layerElement = widget.getElement().getParent();
Location location = new Location();
location.layer = layerElement;
if (horizontal) {
location.leading = getLocationValue(context, layerElement, "left");
location.trailing = getLocationValue(context, layerElement, "right");