Hi ,
I am using <smartgwt.version>12.1-p20210219</smartgwt.version>
I am having a layout.In layout i have added a fixed sized button(250px) and a label.
On layout,i have set setAutowidth().
I have label to take dynamic size accordig to its content and accordingly the layout should size.
on Label:
projectNameLabel = new Label();
projectNameLabel.setMargin(5);
projectNameLabel.setBaseStyle(CssNameConstant.HEADING_LABEL_BOLD + CssNameConstant.SPACE + CssNameConstant.NO_WRAP);
projectNameLabel.setHeight(40);
projectNameLabel.setWidth100();
projectNameLabel.setWrap(false);
projectNameLabel.setOverflow(Overflow.VISIBLE);
projectNameLabel.setMaxWidth(500);
after 500px , if label text is long it should show elipsis or wrap.
But it is not respecting the max width., it streches beyound that till it provides whole space to label witout wrapping.
I want label should come up till 500px after that it shoud should ellipsis/wrap.
Thanks.
I am using <smartgwt.version>12.1-p20210219</smartgwt.version>
I am having a layout.In layout i have added a fixed sized button(250px) and a label.
On layout,i have set setAutowidth().
I have label to take dynamic size accordig to its content and accordingly the layout should size.
on Label:
projectNameLabel = new Label();
projectNameLabel.setMargin(5);
projectNameLabel.setBaseStyle(CssNameConstant.HEADING_LABEL_BOLD + CssNameConstant.SPACE + CssNameConstant.NO_WRAP);
projectNameLabel.setHeight(40);
projectNameLabel.setWidth100();
projectNameLabel.setWrap(false);
projectNameLabel.setOverflow(Overflow.VISIBLE);
projectNameLabel.setMaxWidth(500);
after 500px , if label text is long it should show elipsis or wrap.
But it is not respecting the max width., it streches beyound that till it provides whole space to label witout wrapping.
I want label should come up till 500px after that it shoud should ellipsis/wrap.
Thanks.
Comment