[java] implement proper spacing objects, with support for default spacing #87
Reference in New Issue
Block a user
No description provided.
Delete Branch "spacing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using float arrays for spacing everywhere is silly and makes calculations hard. This patch makes Spacing an actual object (not just a util class) that holds on to style-set spacing and default spacing (e.g. for native components defining their own padding).
Also, this makes default spacing resolution happen in
get()
, so that the order in whichset()
andsetDefault()
are called doesn't matter anymore. Before, withupdateSpacing()
, setting default spacing overwrote style-set spacing.