Skip to content
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

Prevent opening multiple tooltips on drawing area widgets #8802

Merged

Conversation

GulsahKose
Copy link
Contributor

We see multiple tooltip problem on drawing area widgets. Example case:
Add basic shape into a writer document
Right click on shape and open Position and Size dialog
Select the Rotation tab
Hold the rotation angle widget and drag around itself
When you inspect the "Rotation Angle" tooltip, count may be 600 We expect only 1.

So we prevent to show another tooltip if we have already one.

Change-Id: I2f548f8c7afce8095e83a6faa3722e164f990210

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • Code is properly formatted
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@GulsahKose
Copy link
Contributor Author

Problematic cypress test passes locally:
CYPRESS_BROWSER="/usr/bin/google-chrome" make -C cypress_test UPDATE_SCREENSHOT=true check-desktop spec=calc/autofilter_spec.js

I've triggered twice on CI but still failing.

@eszkadev
Copy link
Contributor

please rebase and force-push, there were some changes with core update for autofilter, maybe patch uses old version

this._tooltip.tooltip('close');
this._tooltip = undefined;
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

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

it was ok before. I meant other else block: line 1720

Copy link
Contributor

Choose a reason for hiding this comment

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

mobile version

Copy link
Contributor

Choose a reason for hiding this comment

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

also do we need to do this._tooltip.tooltip() before close?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Szymon we have to initialize with this._tooltip.tooltip(). Without code doesn't work and throws an error message to debugger console.

It would be nice handle mobile version in separate patch because I don't know much about mobile side. It can take some time to test on mobile.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, then please do the less blinking version as you had. Sorry for the noise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The latest commit is combined version of your and mine ideas. It is the best version now. It's ready to test if all tests pass.

We see multiple tooltip problem on drawing area widgets.
Example case:
    Add basic shape into a writer document
    Right click on shape and open Position and Size dialog
    Select the Rotation tab
    Hold the rotation angle widget and drag around itself
When you inspect the "Rotation Angle" tooltip, count may be 600
We expect only 1.

So we prevent to show another tooltip if we have already one.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I2f548f8c7afce8095e83a6faa3722e164f990210
Copy link
Contributor

@eszkadev eszkadev left a comment

Choose a reason for hiding this comment

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

looks ok

@eszkadev eszkadev merged commit 1d84071 into CollaboraOnline:master Apr 24, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants