-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve vertical alignment and related adjustments
This change simplifies the vertical alignment logic by using a consistent frame of reference for djustments. 1. Determine the line baseline by calculating the "outer baseline" of the frames contained on the line. 2. For each frame on a line calculate the vertical alignment adjustment 3. Add the line height difference to the previous calculation 4. Re-position the frame per the calculated adjustment 4. Determine if the line height is adjusted after the frame is aligned 5. Re-position any following lines if the previous line height was adjusted The outer baseline height calculation is cached to aid in performance since this operation is performed inside-out after the frame has reflowed.
- Loading branch information
Showing
2 changed files
with
194 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters