Remove axis padding from equal-aspect image plot#226
Conversation
PeterC-DLS
left a comment
There was a problem hiding this comment.
Looks fine apart from my comments
VictoriaBeilsten-Edmands
left a comment
There was a problem hiding this comment.
Would you add an example of a plot in different sized containers to a tab in client/example/src/App.tsx
67b2db8 to
0886a8b
Compare
PeterC-DLS
left a comment
There was a problem hiding this comment.
Please add the new attribute to ImagePlot.stories
0886a8b to
aa50b65
Compare
|
Updated to add story. I wasn't able to get the |
aa50b65 to
e9f2204
Compare
|
Sorry about that, I hadn't noticed - it seemed to revert back to the correct aspect when expanding the window at all, so not sure what exactly wasn't triggering when shrinking it. I've changed it so that instead of re-triggering the effect, it uses a resize observer callback. I think it's fixed now and the animation seems smoother as a bonus |
|
Damn, back to the drawing board... Thanks for letting me know |
|
How easy is it to move the title to its own box so it isn't constrained by the plot size? |
|
The title (as it currently exists) gets handled way down in the h5web |
|
Ok, if you allow the plot to be smaller than the toolbar width, does the items on the toolbar flow into the drop-down menu? |
e9f2204 to
a038c8f
Compare
a038c8f to
60bd19a
Compare
|
Apologies for not getting this finished before going on leave. The issue was that I'd put the toolbar it its own |
|
The example app behaves fine when I squeeze the window horizontally: plots seem to have minimum widths and the toolbar narrows and items overflow to dropdown menu properly. |



No description provided.