Closed djsegal closed 5 years ago
Thanks! flex_row
definitely needs some love. Some thoughts:
Does this also fix togglebuttons
without label
in case of many buttons? i.e. togglebuttons(["R_0", "B_0", ...])
?
What happens to slider
if the label has more than one word? Say slider(1:100, label = "number of bins")
?
Somehow, I'm wondering whether getting the margin should be a job for flex_row
or if it should be outside of it (otherwise it may be tricky to remove them), but maybe we can just use some default margin that can be changed with some keyword?
Testing 1 and 2 later
To 3, are you talking about the left/right gutter \~or\~ the spacing between checkboxes?
I was thinking about the left/right margin on the screen (for example width:90%;
). Maybe better to put the whole @manipulate
GUI into some sort of container (like this one here) and not add any side margin to flex_row
?
Or maybe flex_row
with 2-3 arguments could have no margin and flex_row
with one argument could have the margin and be some sort of container (as otherwise it's kind of pointless) so if you want 2-3 arguments as margin you do flex_row(flex_row(a,b))
For 2 & 3,
What do you think?
Superseded by #134
Resolves:
Only tried it on jupyter (and changed some of your logic), so make sure to give it a try!!!