-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't refresh if palette is within a hidden branch #746
base: main
Are you sure you want to change the base?
Conversation
I just merged #745.
Sounds good. Some food for thought: in Qt,
https://doc.qt.io/qt-5/qwidget.html#isHidden
I think this name is fine - unless we want to mirror Qt way of doing things. One advantage of doing it Qt way is that we could also encapsulate "is any parent not attached to the DOM" in the same logic. What do you think? |
3868296
to
eb5d361
Compare
Thanks @krassowski for all the thoughts and ideas. And actually as PhosphorJS mimick Qt API, this is indeed what lumino/packages/widgets/src/widget.ts Lines 120 to 127 in 7251957
So in e40bd13, I removed the new API to instead change the behavior of
|
Fixes #744
Widget.isWithinHiddenWidget
to test if a widget is hidden or within an hidden parentI would recommend merging #745 prior to this to ensure tests are passing on CI.
This PR has two side effects: