Fixed Label bug

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-column-widget@101293 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-10-31 14:42:08 +00:00
parent be9230db4d
commit 457239ee9e
1 changed files with 6 additions and 1 deletions

View File

@ -194,7 +194,12 @@ public class LabelColumnPanel extends FramedPanel implements
if (col.getLabel() != null && !col.getLabel().isEmpty()) {
TextField text = new TextField();
text.setValue(col.getLabel());
textLabel = new FieldLabel(text, col.getLabel());
String lab=col.getLabel();
if(lab.length()>23){
lab=lab.substring(0, 21);
lab=lab+"...";
}
textLabel = new FieldLabel(text, lab);
textLabel.setLabelWidth(LABELWIDTH);
textLabel.setId(col.getColumnId());
} else {