String style = page.getStyle();
if (style == null || style.length() == 0) {
style = null;
String wd = null, hgh = null;
if (owner instanceof HtmlBasedComponent) {
final HtmlBasedComponent hbc = (HtmlBasedComponent)owner;
wd = hbc.getWidth(); //null if not set
hgh = hbc.getHeight(); //null if not set
}
if (wd != null || hgh != null || contained) {
final StringBuffer sb = new StringBuffer(32);
HTMLs.appendStyle(sb, "width", wd != null ? wd: "100%");