-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix for: Colordialog is incorrectly positioned when used with another dialog #3572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some minor stuff.
</div> | ||
|
||
<script> | ||
if ( bender.tools.env.mobile ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to also add manual test for mobiles, as the regression which has been introduced here is caused by changes dedicated to mobiles. I think that if we change test steps with dev console, it should be possible to do it in the same test file, WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, should work 👍
04abf74
to
843ba3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only small issue with manual test. It looks like when you open it on some slow machine (e.g. you could check it on IE or Browser Stack mobiles) it may show dialogs in incorrect order once button clicked. It only occurs on the first clean page load and first button click, probably due some caching issue / asynchronous nature of commands.
The fix will probably require chaining commands to make sure that the previous finished or even replacing commands with editor.openDialog
, as commands may also open dialogs asynchronously.
I can fix it but I wonder if it's really an issue - more important than dialogs order is the fact that the one on top is accessible, when it's closed the second one becomes active etc. So maybe instead of messing around with commands we could change Expected to sth like "all dialogs close and activate properly" instead, WDYT? |
I have a feeling that order is important here, note that you actually update code around logic responsible for correct dialog order, which may be messed up if |
Co-Authored-By: Jacek Bogdański <[email protected]>
fe03de9
to
155666d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
What is the purpose of this pull request?
Bug fix
Does your PR contain necessary tests?
All patches which change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.
This PR contains
What is the proposed changelog entry for this pull request?
What changes did you make?
After the fix cell properties dialog is properly fading when color dialog is opened.
Closes #3559.