Add default test for box sizing (#1716)
Summary: X-link: https://github.com/facebook/react-native/pull/46800 Pull Request resolved: https://github.com/facebook/yoga/pull/1716 Had a mini heart attack thinking I set the default to content box. Wrote this to double check and it passed. Might as well check it in Technically the default to BoxSizing.h is ContentBox, but in the style we override that. Regardless I switched that around so border box was the default. Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D63802722 fbshipit-source-id: 49ed29657c964bc12a2bf70988061ab4599267ec
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3351e8eb45
commit
990ec920ad
@@ -20,8 +20,8 @@ export enum Align {
|
||||
}
|
||||
|
||||
export enum BoxSizing {
|
||||
ContentBox = 0,
|
||||
BorderBox = 1,
|
||||
BorderBox = 0,
|
||||
ContentBox = 1,
|
||||
}
|
||||
|
||||
export enum Dimension {
|
||||
@@ -142,8 +142,8 @@ const constants = {
|
||||
ALIGN_SPACE_BETWEEN: Align.SpaceBetween,
|
||||
ALIGN_SPACE_AROUND: Align.SpaceAround,
|
||||
ALIGN_SPACE_EVENLY: Align.SpaceEvenly,
|
||||
BOX_SIZING_CONTENT_BOX: BoxSizing.ContentBox,
|
||||
BOX_SIZING_BORDER_BOX: BoxSizing.BorderBox,
|
||||
BOX_SIZING_CONTENT_BOX: BoxSizing.ContentBox,
|
||||
DIMENSION_WIDTH: Dimension.Width,
|
||||
DIMENSION_HEIGHT: Dimension.Height,
|
||||
DIRECTION_INHERIT: Direction.Inherit,
|
||||
|
Reference in New Issue
Block a user