-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #899 from wordpress-mobile/gutenberg_alignment
Update Heading, Preformat, and HiddenHtml Spans to allow view-level alignment
- Loading branch information
Showing
30 changed files
with
575 additions
and
190 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
12 changes: 12 additions & 0 deletions
12
aztec/src/main/kotlin/org/wordpress/aztec/AlignmentRendering.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.wordpress.aztec | ||
|
||
/** | ||
* With [SPAN_LEVEL] any alignment must be specified at the span level. Importantly, this | ||
* means that the View's gravity will always be ignored in determining the rendering of | ||
* the text's alignment. | ||
* | ||
* With [VIEW_LEVEL] alignment, the rendering of alignment is determined by the View's gravity. | ||
* Note that it is not possible to update the underlying alignment using [AztecText.toggleFormatting] | ||
* when you are using [VIEW_LEVEL] alignment rendering. | ||
*/ | ||
enum class AlignmentRendering { SPAN_LEVEL, VIEW_LEVEL } |
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
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
Oops, something went wrong.