|
|
|
@ -68,7 +68,7 @@ public abstract class AbstractCellElementAction extends CellSelectionAction {
|
|
|
|
|
if (isNeedShinkToFit()) { |
|
|
|
|
// shink to fit.(如果value是String)
|
|
|
|
|
Object editElementValue = editCellElement.getValue(); |
|
|
|
|
if (editElementValue != null && (editElementValue instanceof String || editElementValue instanceof Number)) { |
|
|
|
|
if (checkValueType(editElementValue)) { |
|
|
|
|
// TODO ALEX_SEP 暂时用FIT_DEFAULT替代,不取reportsetting里面的设置,因为也不知道是应该放在report里面还是elementcase里面
|
|
|
|
|
GridUtils.shrinkToFit(ReportConstants.AUTO_SHRINK_TO_FIT_DEFAULT, tplEC, editCellElement); |
|
|
|
|
} |
|
|
|
@ -78,6 +78,10 @@ public abstract class AbstractCellElementAction extends CellSelectionAction {
|
|
|
|
|
} |
|
|
|
|
ePane.fireTargetModified(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean checkValueType(Object editElementValue) { |
|
|
|
|
return editElementValue instanceof String || editElementValue instanceof Number; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
//控件设置记住dlg,提交入库智能添加单元格后可以show出来
|
|
|
|
|
DesignerContext.setReportWritePane(dialog); |
|
|
|
|