Bug 138901 - In sidebar created by an extension, the tooltip of button's are not refreshed if it's text changes
Summary: In sidebar created by an extension, the tooltip of button's are not refreshed...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Ilhan Yesil
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-14 16:08 UTC by Ilhan Yesil
Modified: 2021-09-06 08:22 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilhan Yesil 2020-12-14 16:08:23 UTC
Description:
In our company we use the extension "Wollmux" which creates it's own tabs in the sidebar. Some buttons on these tabs can change their text, as we can define different senders for a letter, so changing the current means changing the text on the button. If the sender has a short name, the text doesn't exceed the button's width and there is no tooltip, if mouse is over the button. But a sender with a long name exceeds the width and the name is shown cutted. If the mouse moves over the button a tooltip will be popup, so we get still whole name. The problem is, that the tooltip is calculated only once, after a change of the name, the tooltip isn't updated.

Steps to Reproduce:
1.Install "Wollmux" from wollmux.org
2.In the sidebar activate the tab "WollMux"
3.Under Extras->Absenderdaten define at least one sender with short names and one with very long names
4.Below are some buttons, the first button displays the current sender. See if there is a tooltip. Initially there shouldn't be a tooltip if the sender's name is short, in this case select a sender with long name, so a tooltip is shown now. 
5.Now select the short name.


Actual Results:
Although not selected the long name is still shown as tooltip.

Expected Results:
After changing the text of the button, the tooltip should be updated. If the new text is short enough to be displayed on the button, there should be no tooltip at all, if it is another long text, that does exceed the buttons width, the content of the tooltip should be updated.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64)
Build ID: e5e3a05f13f47d44276cfe8d88e8ec9d4d559a66
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 Ilhan Yesil 2020-12-14 16:09:14 UTC
Self confirming according to https://wiki.documentfoundation.org/QA/Guidelines_for_public_and_private_sector_deployments. Issue has originally been reported by another user in our internal issue tracker.
Comment 2 Xisco Faulí 2021-03-31 13:55:27 UTC
Dear Ilhan Yesil,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assign it back to yourself if you're still working on this.
Comment 3 Commit Notification 2021-04-19 10:46:56 UTC
Ilhan Yesil committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/f1d9648b5196eacac080a2a4db42c06829554107

tdf#138901 Refresh button tooltip in sidebar created by extension

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.