Open LuckyForce opened 1 year ago
When aligning vertically for rows their is either the option to do it on top or center. I need bottom for my use case.
// TODO # Experimental // ------------------------------------------------------------------------------ // align vertically let topTextToAlignVertically = 0; if(valign && valign !== 'top'){ const heightText = this.heightOfString(text, { width: width - (cellPadding.left + cellPadding.right), align: align, }); // line height, spacing hehight, cell and text diference topTextToAlignVertically = rowDistance - columnSpacing + (rectCell.height - heightText) / 2; } // ------------------------------------------------------------------------------
When aligning vertically for rows their is either the option to do it on top or center. I need bottom for my use case.