columnAccessor = new GEColumnAccessor(this);
IDataProvider dataProvider = new ListDataProvider<TreeNode>(list, columnAccessor);
-
- int defaultFontSize = 12;
- int height = (int)Math.ceil(((double)(defaultFontSize))*getDisplayScale()) + DataLayer.DEFAULT_ROW_HEIGHT-defaultFontSize;
- dataLayer = new DataLayer(dataProvider, DataLayer.DEFAULT_COLUMN_WIDTH, height);
+
+// FIXME: NatTable 1.0 required help to work with custom display scaling (Windows 7 display scaling).
+// It seems that NatTable 1.4 breaks with the same code in Windows 7, so now the code is disabled.
+// More testing with different hardware is required...
+// int defaultFontSize = 12;
+// int height = (int)Math.ceil(((double)(defaultFontSize))*getDisplayScale()) + DataLayer.DEFAULT_ROW_HEIGHT-defaultFontSize;
+// dataLayer = new DataLayer(dataProvider, DataLayer.DEFAULT_COLUMN_WIDTH, height);
+ dataLayer = new DataLayer(dataProvider);
// resizable rows are unnecessary in Sulca report.
dataLayer.setRowsResizableByDefault(false);
// Column header layer
columnHeaderDataProvider = new GEColumnHeaderDataProvider(this, dataLayer);
columnHeaderDataLayer = new DefaultColumnHeaderDataLayer(columnHeaderDataProvider);
- columnHeaderDataLayer.setDefaultRowHeight(height);
+ //columnHeaderDataLayer.setDefaultRowHeight(height);
columnHeaderDataProvider.updateColumnSizes();
//ISortModel sortModel = new EcoSortModel(this, generator,dataLayer);