Hi Isomorphic,
please see the attached test case ( + screenshots). I'm expecting the last columns to stay constant in width, which does not happen here (FF26, v10.0p_2015-04-23).
Best regards,
Blama
please see the attached test case ( + screenshots). I'm expecting the last columns to stay constant in width, which does not happen here (FF26, v10.0p_2015-04-23).
Code:
package com.smartgwt.sample.client;
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.core.KeyIdentifier;
import com.smartgwt.client.data.DataSource;
import com.smartgwt.client.types.AutoFitWidthApproach;
import com.smartgwt.client.util.PageKeyHandler;
import com.smartgwt.client.util.Page;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.layout.VStack;
public class BuiltInDS implements EntryPoint {
private ListGrid boundList;
private ListGridField scientificName;
private ListGridField commonName;
private ListGridField status;
private ListGridField status2;
private ListGridField lifeSpan;
private ListGridField information;
public void onModuleLoad() {
KeyIdentifier debugKey = new KeyIdentifier();
debugKey.setCtrlKey(true);
debugKey.setKeyName("D");
Page.registerKey(debugKey, new PageKeyHandler() {
public void execute(String keyName) {
SC.showConsole();
}
});
VStack vStack = new VStack();
vStack.setLeft(20);
vStack.setTop(20);
vStack.setWidth("95%");
vStack.setHeight("95%");
vStack.setMembersMargin(20);
boundList = new ListGrid() {
{
setDataSource(DataSource.get("animals"));
commonName = new ListGridField("commonName");
commonName.setAutoFitWidthApproach(AutoFitWidthApproach.BOTH);
scientificName = new ListGridField("scientificName");
scientificName.setAutoFitWidthApproach(AutoFitWidthApproach.TITLE);
status = new ListGridField("status");
status.setAutoFitWidthApproach(AutoFitWidthApproach.VALUE);
status2 = new ListGridField("status");
status2.setWidth(50);
status2.setAutoFitWidth(false);
lifeSpan = new ListGridField("lifeSpan");
lifeSpan.setWidth(50);
lifeSpan.setAutoFitWidth(false);
information = new ListGridField("information");
information.setWidth(50);
information.setAutoFitWidth(false);
setFields(commonName, scientificName, status, status2, lifeSpan, information);
}
};
vStack.addMember(boundList);
vStack.draw();
boundList.fetchData();
}
}
Blama
Comment