Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"bottom" vertical alignment text position is off by one line #530

Open
SheetJSDev opened this issue Dec 28, 2022 · 0 comments
Open

"bottom" vertical alignment text position is off by one line #530

SheetJSDev opened this issue Dec 28, 2022 · 0 comments

Comments

@SheetJSDev
Copy link

Demo: http://jsfiddle.net/hawoc9tL/

cdg

The text for the cells is not visible since the y position is off.

https://github.com/TonyGermaneri/canvas-datagrid/blob/master/lib/draw.js#L638 the baseline would start at the top of the calculated box. It should be shifted down by the height of the the first line of text. Mirroring the "top" case:

        vPos = cell.height - cell.paddingBottom - cell.text.height + cell.calculatedLineHeight;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant