jdaviz
jdaviz copied to clipboard
Inconsistent spacing in coordinates display
Reporter: pllim
We used to have strict formatting to ensure the coordinates don't jump around when blinking images, but this does not seem to be the case anymore. I noticed this when blinking the test data in imviz_rotation_by_hidden_layer.ipynb that is part of https://github.com/spacetelescope/jdaviz/pull/2179 . Though I suspect you will also see the same problem in main branch even without that PR but using similar data WCSes.
Note the spacing after "World" in coordinates display.
DISCLAIMER: This issue was autocreated by the Jdaviz Issue Creation Bot on behalf of the reporter.
Nothing obvious jumps out in the code and I don't see this problem in normal example notebooks. Maybe we can keep this open for now unless this pops back up in another round of #2179 review. That imviz_rotation_by_hidden_layer.ipynb no longer exists in that branch. But if we no longer see it, then maybe okay to close without further action.
We use single strings for each "row" now (except the first row which has two strings), but using a fixed-width font and specific string formatting would definitely help keep things tidier and aligned better.
I thought maybe it was a matter of setting left alignment on td element but I would need this problem to crop back up again to be sure.