mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #6] stretchy={false} not working #3
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#3
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?
Originally created by @Boomxx on GitHub (Feb 16, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/6
The universal prop
stretchydoesn't seem to be working for me with the following versions:TextInput, Button, Boxfor example always fill the available space regardless of addingstretchy={false}.I also was unable to find out how to position and size components - is that somewhere in the docs that I missed?
@kusti8 commented on GitHub (Feb 16, 2018):
Can you paste your code?
On Thu, Feb 15, 2018, 7:21 PM Boomxx notifications@github.com wrote:
@Boomxx commented on GitHub (Feb 16, 2018):
Sure, I have just been trying the examples out and seeing the issue:
@kusti8 commented on GitHub (Feb 16, 2018):
When you only have a single child in a window, then you can't use stretchy.
You need to have a box in the window, and then the text input inside the
box. Was this in my documentation ? If so could you link it so I can fix it?
On Thu, Feb 15, 2018, 7:25 PM Boomxx notifications@github.com wrote:
@Boomxx commented on GitHub (Feb 16, 2018):
https://proton-native.js.org/#/methods/dialog
@kusti8 commented on GitHub (Feb 16, 2018):
Ok thank you I'll fix that now.
On Thu, Feb 15, 2018, 7:31 PM Boomxx notifications@github.com wrote:
@Boomxx commented on GitHub (Feb 16, 2018):
Is this the expected result with
stretchy={false}?@kusti8 commented on GitHub (Feb 16, 2018):
Yes it is. You can't set the size of the objects unfortunately, that's just
how libui is. You can add separators or make it all a grid if you want.
On Thu, Feb 15, 2018, 7:34 PM Boomxx notifications@github.com wrote:
@Boomxx commented on GitHub (Feb 16, 2018):
okay great thanks - just wanted to make sure I wasn't messing anything up