Strange project. Example not working #947

Closed
opened 2019-11-04 12:18:20 -08:00 by zim32 · 1 comment
zim32 commented 2019-11-04 12:18:20 -08:00 (Migrated from github.com)

Simple example from Standalone page (https://yogalayout.com/getting-started/standalone/) not working.

It gives me thise results

Root:
bottom: 0, height: 300, left: 0, right: 0, top: 0, width: 500

Child1:
bottom: 0, height: 100, left: 0, right: 0, top: 50, width: 100

Child2:
bottom: 0, height: 100, left: 0, right: 0, top: 150, width: 100

Items are always stacked vertically.
Latest version from npm

Simple example from Standalone page (https://yogalayout.com/getting-started/standalone/) not working. It gives me thise results **Root**: bottom: 0, height: 300, left: 0, right: 0, top: 0, width: 500 **Child1**: bottom: 0, height: 100, left: 0, right: 0, top: 50, width: 100 **Child2**: bottom: 0, height: 100, left: 0, right: 0, top: 150, width: 100 Items are always stacked vertically. Latest version from npm
NickGerleman commented 2023-06-13 08:12:21 -07:00 (Migrated from github.com)

Items are always stacked vertically

The website currently sets UseWebDefaults as part of YGConfig. This is confusingly not set by default as part of Yoga standalone, leading to a default flexDirection of column.

> Items are always stacked vertically The website currently sets `UseWebDefaults` as part of `YGConfig`. This is confusingly not set by default as part of Yoga standalone, leading to a default `flexDirection` of `column`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#947
No description provided.