CenterForDigitalHumanities / CenterForDigitalHumanities/TPEN-interfaces

Canvas-panel centering still causes alignment issues with short lines (see PR #246)

Open
#269 0 comments 0 reactions 0 assignees View on GitHub
bug component
Dominant language
JavaScript
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Although the changes from PR #246 ("244 bottom image alignment") have been applied, there are still alignment issues when rendering short lines. This appears to be due to the way canvas-panel calculates and applies centering, which does not always align short lines as expected. Further investigation and adjustment to the centering logic in canvas-panel is needed to resolve these remaining issues.

Related PR: #246

Steps to reproduce:
- Apply the changes from PR #246
- Render a set of long and short lines using canvas-panel
- Observe that the alignment below is still off-center (leftwards) in some cases

Expected behavior:
- All lines, regardless of length, should be properly centered within the panel.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.