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
Hello, I've just been trying to wrap my head around this library by playing with the vxfw example in the readme.
What I'm trying to do, is put the text label and button side by side, with the button taking up a 16x1 space, and the pair being centred in the terminal. I've managed to do the first bit with a FlexRow, but I'm having trouble actually centring it.
Of course, I could calculate the origin myself, but I thought that's what Center's job is, so I'm probably just using it incorrectly here. Anyone have any ideas? Apologies if this is explained in some documentation somewhere. If it is, I haven't been able to find it!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I've just been trying to wrap my head around this library by playing with the
vxfwexample in the readme.What I'm trying to do, is put the text label and button side by side, with the button taking up a 16x1 space, and the pair being centred in the terminal. I've managed to do the first bit with a
FlexRow, but I'm having trouble actually centring it.Of course, I could calculate the
originmyself, but I thought that's whatCenter's job is, so I'm probably just using it incorrectly here. Anyone have any ideas? Apologies if this is explained in some documentation somewhere. If it is, I haven't been able to find it!Beta Was this translation helpful? Give feedback.
All reactions