Skip to content

Conversation

@krassowski
Copy link
Member

References

Fixes #14250

Code changes

Move spreadsheet icon setter to before await to execute it synchronously - otherwise the icon is set too late (after adding widget to main area and hence too late to get proper class applied) due to async code execution.

Also fixes an issue with style being set on content which is not ready and throwing an error by awaiting on initialisation (adds new public ready member on CSVViewer).

User-facing changes

Before After
Screenshot from 2023-07-12 18-54-57 Screenshot from 2023-07-12 18-55-23

Backwards-incompatible changes

Adds a non-optional API member ready on CSVViewer class, we can make it optional on backport.

Also fixes an issue with style being set on content which is not ready
and throwing an error.
@krassowski krassowski added the bug label Jul 12, 2023
@krassowski krassowski added this to the 4.0.x milestone Jul 12, 2023
@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

Copy link
Member

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @krassowski

@krassowski krassowski merged commit 8f6dd56 into jupyterlab:main Jul 19, 2023
@krassowski
Copy link
Member Author

@meeseeksdev please backport to 4.0.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Jul 19, 2023
fcollonval pushed a commit that referenced this pull request Jul 23, 2023
…wer (#14859)

Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CSV files' icon in tab bar is not vertically centered

2 participants