Metadata
- Source
- FLUID-6611
- Type
- Bug
- Priority
- Major
- Status
- Open
- Resolution
- N/A
- Assignee
- Justin Obara
- Reporter
- Justin Obara
- Created
2021-04-01T14:27:36.750-0400 - Updated
2021-07-27T07:52:55.205-0400 - Versions
-
- 3.0
- Fixed Versions
- N/A
- Component
-
- Prefs Framework
- UIEnhancer
Description
When the line-height value is set to "normal" the line-spacing enactor will assume that the line-height is 1.2. However, this isn't universally true and is dependent on the font family.
See: https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
One particular issue that can be seen in the uiOptions demo is that as that the line-space is increased fro 1 to 1.1, the line-heigh actually decreases. The preference setting is intended to be a multiplier. However, because the base value (1.2) is incorrect, the new value is smaller than what the "normal" line-height actually corresponds to. However, if you were to first change the text-style preference to "Arial" and then changed the line-height, you'd see it increase correctly.
Some further discussion about how to detect the actual line-height: https://stackoverflow.com/a/4515470