You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Layout is not vertically stretching when the window is resized #243
Describe the bug
When nodegui window is resized, the root layout can be stretched horizontally but not vertically. But I wanna it to be stretched vertically too.
To Reproduce
Steps to reproduce the behavior:
Just resize nodegui window
Expected behavior
The root layout also have to be stretched vertically.
Screenshots
Desktop (please complete the following information):
changed the title [-]Layout is not stretching when the window is resized[/-][+]Layout is not vertically stretching when the window is resized[/+]on Dec 4, 2019
I upgraded it to v0.8.0. But the layout is still not stretched. But the layout of your default example is stretched well. So weird!! I recloned the example repo and built it and started it. It worked!.
Activity
[-]Layout is not stretching when the window is resized[/-][+]Layout is not vertically stretching when the window is resized[/+]a7ul commentedon Dec 4, 2019
Could you try by upgrading nodegui and react-nodegui to latest version @neosarchizo
a7ul commentedon Dec 4, 2019
Also, I did push another fix yesterday. Will do a release soon :)
#241
neosarchizo commentedon Dec 4, 2019
I upgraded the packages like followings, but the layout is still not stretched.
a7ul commentedon Dec 4, 2019
NodeGui v0.8.0 should fix this. @neosarchizo
You will need to update then rebuild the app.
neosarchizo commentedon Dec 5, 2019
I upgraded it to v0.8.0. But the layout is still not stretched. But the layout of your default example is stretched well. So weird!! I recloned the example repo and built it and started it. It worked!.
This is my repo.
neosarchizo/react-nodegui-flow
a7ul commentedon Dec 5, 2019
Hi @neosarchizo
Just apply this patch:
a7ul commentedon Dec 5, 2019
One trick I use to understand the layout is by just adding
border: 1px solid green;to the styles and that will just show me where the layout boxes are .neosarchizo commentedon Dec 5, 2019
Good! But why didn't it work? Because there is not
justify-content: 'space-around';in codes of react-nodegui-starter.a7ul commentedon Dec 5, 2019
its because of this: https://github.com/nodegui/react-nodegui-starter/blob/5741c161576ad02ce3b416a5d366fa29f15875e4/src/components/steptwo.tsx#L42
this flex:1 is what does the magic