microsoft / microsoft/AdaptiveCards
[UI] Fractional lineHeight will cause scroll issues
Open
@jwoo-msft is already working on this.
Since Feb 14, 2023.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Since the 1.33 magic number factor will return a decimal into this._computedLineHeight, a safer alternative will be to wrap the multiplication operation in a Math.ceil('...') to ensure whole number pixel value.
The fractional (decimal) line height can cause issues with scrolling on containing parent element.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.