// related code has been updated
if (getIcon() != null) {
target.addAttribute(
- AbstractComponentConnector.ATTRIBUTE_ICON, getIcon());
+ AbstractComponentConnector.ATTRIBUTE_ICON,
+ getIcon());
}
if (eventIdentifiers != null) {
&& (getHeightUnits() != Unit.PERCENTAGE || ComponentSizeValidator
.parentCanDefineHeight(this))) {
sharedState.setHeight("" + getCSSHeight());
+ } else {
+ sharedState.setHeight("");
}
if (getWidth() >= 0
&& (getWidthUnits() != Unit.PERCENTAGE || ComponentSizeValidator
.parentCanDefineWidth(this))) {
sharedState.setWidth("" + getCSSWidth());
+ } else {
+ sharedState.setWidth("");
}
sharedState.setImmediate(isImmediate());