我正在修复应用程序中的UI错误,现在我在DynamicForm上遇到了多个DynamicForm的问题。
如我们所知,如果没有将pickList的宽度设置为SmartGwt a pickList宽度以适应内容。问题是当一个SelectItem的内容比其他的内容更宽的时候。例如,我们有2 SelectItems,来自第一个SelectItem的内容的宽度小于第二个。复制这一问题的步骤:
的pickList相同。
问题是如何强制SmartGwt重新计算每个SelectItem的pickList宽度,分别?
一些代码示例:
// Constructor of our DynamicForm
public PriceItemFilterForm(DataSource datasource) {
// SelectItem with content with the smallest width
SelectItem priceItemType = new SelectItem(PRICE_ITEM_TYPE_NAME,
toolMessages.priceItemTypeFilterTitle());
// Second SelectItem with content with bigger with than previous one
SelectItem evalTimeType= new SelectItem(EVAL_TIME_NAME,
toolMessages.evaluationTimeFilterTitle()){
@Override
protected String getLocalizedMessage(String text) {
return toolConstants.getString(text);
}
};
evalTimeType.setStartRow(true);
setFields(priceItemType, evalTimeType);
}提前谢谢你的回答。
发布于 2012-10-15 19:02:37
我升级到2.5智能gwt版本。我也犯了同样的错误。我做了一个升级到3.0智能GWT和那里的问题是解决的!
https://stackoverflow.com/questions/10379759
复制相似问题