126e10dc1d4c1f411f407f58d71ad6090661aaa1
- Use pageInfo.width/height (authoritative rendered canvas size from react-pdf) instead of containerRect.width/height for all coordinate math; containerRect dimensions could differ if the wrapper div has extra decoration not matching the canvas - Track containerSize in state (updated via useLayoutEffect when pageInfo changes) so renderFields() uses stable values from state instead of calling getBoundingClientRect() during render - Refactor screenToPdfCoords/pdfToScreenCoords to take renderedW/H as explicit params instead of a DOMRect, making the contract clearer Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
97.5%
Shell
1.6%
Dockerfile
0.4%
JavaScript
0.3%
CSS
0.2%