Uploaded image for project: 'ZK Pivottable'
  1. ZK Pivottable
  2. ZKPVT-15

column size in row fields is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Normal Normal
    • None
    • 1.0.0
    • None

      The column size in row fields is not correct when setting in PivotRender

      public class CustomPivotRenderer implements PivotRenderer {
      	public int getColumnSize(Pivottable table, PivotHeaderContext columnContext, PivotField field) {
      		int columnSize = 100; // default column size
      		if (columnContext.isGrandTotal() && field != null) {
      			columnSize = 200;
      		} else {
      			if ("Organization".equals(field.getTitle()))
      				columnSize = 100;
      			if ("Pointer".equals(field.getTitle())) 
      				columnSize = 50; //row field column size
      		}
      		return columnSize;
      	}
      }
      

      It will have total size 150px, after clicking open icon the Organization and Pointer columns will have 75px each instead of 100px and 50px.

            SimonPai SimonPai
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: