Bug 158493 - tip on "formula bar" for "formula making" is displaying over the formula itself when using vertical toolbars
Summary: tip on "formula bar" for "formula making" is displaying over the formula itse...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: GTK3
  Show dependency treegraph
 
Reported: 2023-12-02 20:00 UTC by pajaro
Modified: 2023-12-06 07:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot where it's OK (33.99 KB, image/png)
2023-12-04 07:58 UTC, Michael Weghorn
Details
bars to the side (20.80 KB, image/png)
2023-12-05 14:06 UTC, pajaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pajaro 2023-12-02 20:00:05 UTC
tip on "formula bar" for "formula making" is displaying over the formula itself when autoinput is selected.

Expected: 
Tooltip for formula making to not be displayed over the formula itself.

Same issue of #151677 but it seems to be a different cause. It started to happen to me at the same time as the original bug but didnt mention anything because i thought it was the same bug

Can find an screenshot in https://bugs.documentfoundation.org/attachment.cgi?id=191184

Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Debian package version: 4:7.6.3-2
Calc: threaded
Comment 1 ady 2023-12-02 22:43:09 UTC
As per bug 151677 comment 11 (and others), let's CC Michael Weghorn.

Attachment 191184 [details] originally posted in bug 151677 comment 9 is relevant here.

The Version field is probably around 7.4.x or even older.

Might this be possibly related to *gtk3* (or, who knows, maybe to dark mode)?
Comment 2 ady 2023-12-02 22:46:17 UTC
Also attachment 183524 [details] originally posted in bug 151995 comment 0 is relevant here.
Comment 3 pajaro 2023-12-03 09:28:28 UTC Comment hidden (obsolete)
Comment 4 ady 2023-12-03 14:09:19 UTC Comment hidden (obsolete)
Comment 5 Michael Weghorn 2023-12-04 07:58:54 UTC
Created attachment 191214 [details]
Screenshot where it's OK
Comment 6 Michael Weghorn 2023-12-04 08:04:00 UTC
I cannot reproduce in a local master build.

(In reply to pajaro from comment #0)
> tip on "formula bar" for "formula making" is displaying over the formula
> itself when autoinput is selected.

What do you mean with "when autoinput is selected"? Is that any extra step/option to set?

> Same issue of #151677 but it seems to be a different cause. 

Indeed, bug 151677 was kf5-specific, while this here is for the gtk3 VCL plugin, so the fix in the context of bug 151677 should be unrelated.






Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 29fc0ec9930fc1c09c0e79d41c56f93ae853c054
CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

(In reply to ady from comment #1)
> Might this be possibly related to *gtk3* (or, who knows, maybe to dark mode)?

That's possible, I've added it to the gtk3 metabug. (I'd be surprised if it was related to dark mode.)
Comment 7 pajaro 2023-12-04 09:45:02 UTC
> What do you mean with "when autoinput is selected"? Is that any extra step/option to set?

No sorry, i just copied the other bug text

I dont do anything special i think. I just start typing formula or move in some already typed formula and when the tip shows, it shows like the screenshot


If i restart in safemode the bug doesnt show

Do you need me to do something else?
Comment 8 ady 2023-12-04 18:39:37 UTC
(In reply to Michael Weghorn from comment #6)

> What do you mean with "when autoinput is selected"? Is that any extra
> step/option to set?

For those that might not remember, the tooltip that is displayed when editing a formula in the formula bar input window box is not displayed when the AutoInput feature is set to OFF.

For the tooltip to be actually displayed, the setting in menu 'Tools > AutoInput' has to be set to ON.

Possible factors I am wondering about:
* Size of Calc's window (e.g. not maximized).
* Is the Menubar shown?
* What UI variant is in use (e.g. Tabbed, Standard, Single Toolbar,...)?
* Does the behavior change when using a different UI (menu View > User Interface...)?
* Does the behavior change when showing additional toolbars (e.g. in addition to the typical Formatting and Standard toolbars for the Standard UI)?
* Is the OS/DE displaying (other) toolbars or similar UI artifacts above Calc's window?
* Screen resolution, dpi, size, scale (%), multiple monitors...
Comment 9 Caolán McNamara 2023-12-04 20:53:30 UTC
The screenshot seems to suggest that there are no toolbars. I tried turning off my toolbars in calc, but (even with export GDK_BACKEND=x11) the GtkPopover that is used for these is still able to be shown on top of the formula bar rather that on it as shown here). But I'm guessing that if the toolbar was shown that the PopOver fits above the formula line?

It might be that the uses of Help::ShowPopover should at least set a narrow rectangle that it wants the popover to point to (instead of a mere point) and that set_pointing_to should use that height in the rect passed to gtk_popover_set_pointing_to so that gtk can try moving the popover to the bottom of that rect if its doesn't fit at the top.
Comment 10 pajaro 2023-12-05 14:06:39 UTC
Created attachment 191248 [details]
bars to the side

Bars to the side
Comment 11 pajaro 2023-12-05 14:07:57 UTC
Bars exist but they are repositioned to the side as seen in screenshot

I confirm that after moving one of them to the top it works correctly again
Comment 12 ady 2023-12-05 18:51:58 UTC
(In reply to pajaro from comment #11)
> Bars exist but they are repositioned to the side as seen in screenshot
> 
> I confirm that after moving one of them to the top it works correctly again

That's the bug then. I'm modifying the summary accordingly.

Someone should also test whether this behavior is also relevant on non-gtk3 DE.
Comment 13 Michael Weghorn 2023-12-06 07:07:15 UTC
I can confirm that the tooltip displays over the formula when disabling all toolbars with

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 29fc0ec9930fc1c09c0e79d41c56f93ae853c054
CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

It's not a problem with kf5, qt6 or gen.

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 29fc0ec9930fc1c09c0e79d41c56f93ae853c054
CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 29fc0ec9930fc1c09c0e79d41c56f93ae853c054
CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: qt6 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 29fc0ec9930fc1c09c0e79d41c56f93ae853c054
CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: x11
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded