[GH-ISSUE #209] Is it possible to render elements on top of other elements? #143

Closed
opened 2026-05-05 11:47:57 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ranjan-purbey on GitHub (Apr 8, 2019).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/209

Going through the docs, I couldn't find a way to change the window background. So, I thought to draw a rectangle covering the entire window, and place other components on top of it. But, this will not work as children of a Box are stacked. Is there a way to achieve this? Is absolute positioning supported?

Originally created by @ranjan-purbey on GitHub (Apr 8, 2019). Original GitHub issue: https://github.com/kusti8/proton-native/issues/209 Going through the docs, I couldn't find a way to change the window background. So, I thought to draw a rectangle covering the entire window, and place other components on top of it. But, this will not work as children of a Box are stacked. Is there a way to achieve this? Is absolute positioning supported?
Author
Owner

@ranjan-purbey commented on GitHub (Apr 9, 2019):

I need this for a file-explorer app that I am trying to write using proton-native.
image
As you can see in the image above, there is a lot of misalignment between icons and text. I think I can solve this if absolute positioning can be achieved. Any help will be appreciated.

<!-- gh-comment-id:481439951 --> @ranjan-purbey commented on GitHub (Apr 9, 2019): I need this for a file-explorer app that I am trying to write using proton-native. ![image](https://user-images.githubusercontent.com/6953187/55835131-02d09b80-5b39-11e9-90a6-b7a8eab05e6e.png) As you can see in the image above, there is a lot of misalignment between icons and text. I think I can solve this if absolute positioning can be achieved. Any help will be appreciated.
Author
Owner

@mischnic commented on GitHub (Apr 9, 2019):

Absolute positioning isn't possible, it's not currently implemented in the underlying libui Library: https://github.com/andlabs/libui/pull/332

<!-- gh-comment-id:481443951 --> @mischnic commented on GitHub (Apr 9, 2019): Absolute positioning isn't possible, it's not currently implemented in the underlying libui Library: https://github.com/andlabs/libui/pull/332
Author
Owner

@kusti8 commented on GitHub (Apr 12, 2019):

Once libui adds absolute positioning, then we can add yoga support which should make this a lot easier.

<!-- gh-comment-id:482727008 --> @kusti8 commented on GitHub (Apr 12, 2019): Once libui adds absolute positioning, then we can add yoga support which should make this a lot easier.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#143
No description provided.