Add bool config to YGConfig to configure using web defaults #445

Closed
opened 2017-03-01 07:38:32 -08:00 by emilsjolander · 2 comments
emilsjolander commented 2017-03-01 07:38:32 -08:00 (Migrated from github.com)

Historically Yoga has used other defaults then the web. Changing this now is not really an option as it would break all users of Yoga. However new products and frameworks using Yoga should not be effected by this if they would like to use the web defaults.

I suggest adding a bool useWebDefaults field to YGConfig.

Historically Yoga has used other defaults then the web. Changing this now is not really an option as it would break all users of Yoga. However new products and frameworks using Yoga should not be effected by this if they would like to use the web defaults. I suggest adding a `bool useWebDefaults` field to YGConfig.
zcbenz commented 2017-03-28 21:46:54 -07:00 (Migrated from github.com)

@emilsjolander Is there any discussion on why useWebDefaults should be used?

@emilsjolander Is there any discussion on why `useWebDefaults` should be used?
woehrl01 commented 2017-11-28 03:17:46 -08:00 (Migrated from github.com)

@zcbenz useWebDefaults can be used if you need to port an existing html flexbox layout to Yoga. Without the need to watchout for places where the defaults differ from the web. You can even now (un)set useWebDefaults at a subtree level.

@zcbenz `useWebDefaults` can be used if you need to port an existing html flexbox layout to Yoga. Without the need to watchout for places where the defaults differ from the web. You can even now (un)set `useWebDefaults` at a subtree level.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#445
No description provided.