Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-812

wrap text in a merged cell is out of the cell's boundary

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 6.1.0
    • 5.6.1, 5.7.0, 6.0.0, 5.12.2
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. import keikai-812.xlsx
      2. check the merged cell, A3:A4

      Current Result

      Expected Result

      Debug Information

      • 5.6.0 doesn't have this bug
      • text height is limited by max-height which is the row height

      Workaround

      	private String getMergedMaxHeightStyle(SCell cell, boolean hasMergedBorder) {
      		//KEIKAI-812, vertical merged cell should have none max-height, not limited by its row height. Horizontal merged cell is already limited by it row height
      		MergedRect rect = _mmHelper.getMergeRange(cell.getRowIndex(), cell.getColumnIndex());
      		if(rect != null) {
      			return "max-height: none;";
      		}
      		return "";
      	}
      

      attach in the ticket

        1. keikai-812.xlsx
          11 kB
        2. keikai-812.png
          keikai-812.png
          10 kB
        3. keikai-812-expected.png
          keikai-812-expected.png
          8 kB
        4. rootCause.png
          rootCause.png
          140 kB

            rebeccalai rebeccalai
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: