Hi,
SC_SNAPSHOT-2011-03-24/EVAL Deployment
FireFox 3.6.16
The header fields of the listgrid are not correctly aligned when using
setAlign(Alignment.CENTER). The cell values are.
Standalone test case added.
SC_SNAPSHOT-2011-03-24/EVAL Deployment
FireFox 3.6.16
The header fields of the listgrid are not correctly aligned when using
setAlign(Alignment.CENTER). The cell values are.
Standalone test case added.
Originally posted by javadoc
Code:
public class Standalone implements EntryPoint { private static Canvas masterPanel = null; public void onModuleLoad() { //masterPanel should be a Layout masterPanel = new Canvas(); masterPanel.setHeight100(); masterPanel.setWidth100(); masterPanel.setStyleName("pageBackground"); //background style from skin masterPanel.addChild(testCase10()); masterPanel.draw(); } public ListGrid testCase4() { DataSource dataSource = new DataSource(); DataSourceField myTextField = new DataSourceField(); myTextField.setName("textField"); myTextField.setTitle("textField"); dataSource.setFields(myTextField); ListGridRecord[] result = new ListGridRecord[1]; result[0] = new ListGridRecord(); result[0].setAttribute("textField", "test input"); //the order list grid ListGrid ordersList = new ListGrid(); ordersList.setHeight(170); ordersList.setWidth(500); ordersList.setCanEdit(true); ordersList.setDataSource(dataSource); ordersList.setData(result); ordersList.setVisible(false); ordersList.draw(); ListGridField[] fields = ordersList.getAllFields(); for(int i=0; i < fields.length; i++){ fields[i].setAlign(Alignment.CENTER); } ordersList.markForRedraw(); ordersList.show(); return ordersList; } }
Comment