Skip to content

Commit

Permalink
Add line height support in MDS Text Component
Browse files Browse the repository at this point in the history
Summary: Add line height in MDS Text Component, set the default value as Float.MAX_VALUE, same as the default value in FBTextSpec (https://fburl.com/code/2if0r64s).

Differential Revision: D67062086

fbshipit-source-id: a016fc30c17b7a443988470284edef9394dfee23
  • Loading branch information
Meng Shi authored and facebook-github-bot committed Dec 13, 2024
1 parent 3941862 commit e1470fb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public final class TextStylesHelper {
public static final int DEFAULT_EMS = -1;
public static final int DEFAULT_MIN_WIDTH = 0;
public static final int DEFAULT_MAX_WIDTH = Integer.MAX_VALUE;
public static final float DEFAULT_LINE_HEIGHT = Float.MAX_VALUE;
// BREAK_STRATEGY_SIMPLE (AOSP Default)
public static final int DEFAULT_BREAK_STRATEGY = 0;
// HYPHENATION_FREQUENCY_NONE (AOSP Default)
Expand Down

0 comments on commit e1470fb

Please sign in to comment.