column size in row fields is not correct

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Normal
    • None
    • Affects Version/s: 1.0.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: