Hello,
I need to set a TextItem's text box to fill all available width (100%). The following does not work:
textItem.setWidth("100%");
No width at all is then applied to the text box in the resulting HTML. The same result with the following which won't work either and have the same effect:
textItem.setWidth("50%");
textItem.setWidth("*");
Setting a pixel-based width works, but this is not what I need:
textItem.setWidth(120);
I can set the width using CSS:
textItem.setTextBoxStyle("box");
.box {
width:100%;
}
But then the original SmartGWT style is overwritten and all other formatting is lost.
Can anyone help me out?
I need to set a TextItem's text box to fill all available width (100%). The following does not work:
textItem.setWidth("100%");
No width at all is then applied to the text box in the resulting HTML. The same result with the following which won't work either and have the same effect:
textItem.setWidth("50%");
textItem.setWidth("*");
Setting a pixel-based width works, but this is not what I need:
textItem.setWidth(120);
I can set the width using CSS:
textItem.setTextBoxStyle("box");
.box {
width:100%;
}
But then the original SmartGWT style is overwritten and all other formatting is lost.
Can anyone help me out?
Comment