mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/kusti8/proton-native/pull/76
Author: @kusti8
Created: 4/1/2018
Status: ❌ Closed
Base:
master← Head:yoga📝 Commits (4)
f5feaf6Add yoga initial support534b119Add support for reactive yoga rendering9fbdadbRemove requirement for view size68a5612Reorder size and move📊 Changes
17 files changed (+1489 additions, -257 deletions)
View changed files
➕
.test_yoga.js.swp(+0 -0)📝
.vscode/launch.json(+27 -29)📝
Demo.js(+20 -3)📝
package-lock.json(+851 -212)📝
package.json(+2 -1)📝
src/components/DesktopComponent.js(+19 -0)📝
src/components/Dialog.js(+1 -1)➕
src/components/View.js(+184 -0)📝
src/components/Wind.js(+4 -4)📝
src/components/index.js(+4 -2)📝
src/index.js(+6 -2)➕
src/react-components/Window.js(+24 -0)📝
src/react-components/index.js(+2 -1)📝
src/reconciler/index.js(+4 -0)📝
src/utils/createElement.js(+4 -2)➕
src/utils/styleToYoga.js(+334 -0)➕
test_yoga.js(+3 -0)📄 Description
This is the PR that fixes #67.
It can't be merged right away because I still need libui support for GtkFixed and their equivalents on Windows and Mac, as well as sizing. Once that is done, which I'm going to work on now, then I can merge this. The API shouldn't change too much. If you're interested, I've added uiFixedAppend and uiFixedMove, as well as uiSize and uiSetSize. These are what need to be added to Windows and Mac and can be found on my libui and libui-node fork.
This currently supports full yoga layout, as far as I've tested. Meaning nested Views and all styling works. One thing that doesn't work is having a container such as a box as a child. You can't really mix yoga and stretchy layout.
To test:
cd libui && mkdir build && cd build && cmake .. && makecd libui-node && npm isudo npm linknpm link libui-nodenpm inpm run demo🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.