Skip to content

Commit 88589b6

Browse files
committed
Add description to AlignmentApproach enum
1 parent 7701b32 commit 88589b6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
package org.wordpress.aztec
22

3-
enum class AlignmentApproach { SPAN_LEVEL, VIEW_LEVEL }
3+
/**
4+
* With [SPAN_LEVEL] any alignment must be specified at the span level. Importantly, this
5+
* means that the View's gravity will always be ignored in determining the text's alignment.
6+
*
7+
* With [VIEW_LEVEL] alignment, the alignment is determined by the View's gravity.
8+
*/
9+
enum class AlignmentApproach { SPAN_LEVEL, VIEW_LEVEL }

0 commit comments

Comments
 (0)