title: Is TCPDF MultiCell maxheight parameter overriding the height parameter even if it wouldn't have to?
body: <p>I updated my tcpdf lib and I am now facing this weird behaviour that apparently the <code>maxheight</code> parameter overrides the <code>minimum height</code> parameter, even if it the cell content is not that high.</p>
  
  <p>From the <a href="http://www.tcpdf.org/doc/code/classTCPDF.html#aa81d4b585de305c054760ec983ed3ece" rel="nofollow noreferrer">docs</a> it says:</p>
  
  <blockquote>
    <ul>
    <li>$h: (float) Cell minimum height. The cell extends automatically if needed.</li>
    <li>$maxh: (float) maximum height. It should be >= $h and less then remaining space to the bottom of the page, or 0 for disable this
    feature. This feature works only when $ishtml=false.</li>
    </ul>
  </blockquote>
  
  <p>My <code>$maxh</code> is higher than <code>$h</code>, <code>$ishtml</code> is <code>false</code>:</p>
  
  <pre><code>$pdf-&gt;MultiCell(59, 5, "short", 1, 'L', true, 0, 45, 154, true, 0, false, false, 11, 'T', true);
  </code></pre>
  
  <p>So <code>height</code> is <code>5</code> and <code>max height</code> is <code>11</code>. The cell is always <code>11</code>, even if the content is really short.</p>
  
  <p>How to set the cell height to a min of 5, to a max of 11 and only have it expand when the content actually is so much that a new line would be reached?</p>
  
  <p>Current:</p>
  
  <p><img src="https://i.stack.imgur.com/WjkAx.png" alt="enter image description here"></p>
  
  <p>Desired:</p>
  
  <p><img src="https://i.stack.imgur.com/Ow4yn.png" alt="enter image description here"><br>
  and:  </p>
  
  <p><img src="https://i.stack.imgur.com/M4VuO.png" alt="enter image description here"></p>