jdaviz icon indicating copy to clipboard operation
jdaviz copied to clipboard

Inconsistent spacing in coordinates display

Open Jdaviz-Triage-Bot opened this issue 2 years ago • 3 comments

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.

Screenshot 2023-09-18 143743

Screenshot 2023-09-18 144324

🐱


DISCLAIMER: This issue was autocreated by the Jdaviz Issue Creation Bot on behalf of the reporter.

Jdaviz-Triage-Bot avatar Sep 18 '23 18:09 Jdaviz-Triage-Bot

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.

pllim avatar Sep 26 '23 18:09 pllim

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.

kecnry avatar Sep 26 '23 18:09 kecnry

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.

pllim avatar Sep 26 '23 18:09 pllim