Skip to content

fix(calc): Make dropdows work with different zooms (backport 25.04)#15772

Open
eszkadev wants to merge 1 commit into
distro/collabora/co-25.04from
private/eszkadev/dropdown-backport
Open

fix(calc): Make dropdows work with different zooms (backport 25.04)#15772
eszkadev wants to merge 1 commit into
distro/collabora/co-25.04from
private/eszkadev/dropdown-backport

Conversation

@eszkadev
Copy link
Copy Markdown
Contributor

Backport of: #15459

In I4cab2546f6828ab3c76ba8a4e06601904a06502e, DropDownSection was moved into its own file. During this move, some stuff was broken so the dropdown was only active on part of the dropdown arrow.

In I6a5b26b42e4cf77a070452042d5f7a242e874bc0, we then stopped using the uno command to send the dropdown to core, and instead relied on the core position of the dropdown arrow.

Finally, Ib48f7266f7b0d147761eaccd647caf39df0d6550 made it so we would click in the center of the dropdown arrow.

Unfortunately, Ib48f7266f7b0d147761eaccd647caf39df0d6550 made the problem worse on certain zooms/high DPI screens. The dropdown would then either be activeateable across the whole arrow or not be activateable at all.

I think the problems caused by I4cab2546f6828ab3c76ba8a4e06601904a06502e are not still around today, however they did mask problems caused by I6a5b26b42e4cf77a070452042d5f7a242e874bc0 which made the dropdown break when the core position didn't line up.

To fix this, we can revert to using the original uno-command-based approach to handling dropdowns. I've chatted to Gokay and he has OKed this as an approach...

In I4cab2546f6828ab3c76ba8a4e06601904a06502e, DropDownSection was
moved into its own file. During this move, some stuff was broken so
the dropdown was only active on part of the dropdown arrow.

In I6a5b26b42e4cf77a070452042d5f7a242e874bc0, we then stopped using the
uno command to send the dropdown to core, and instead relied on the core
position of the dropdown arrow.

Finally, Ib48f7266f7b0d147761eaccd647caf39df0d6550 made it so we would
click in the center of the dropdown arrow.

Unfortunately, Ib48f7266f7b0d147761eaccd647caf39df0d6550 made the
problem worse on certain zooms/high DPI screens. The dropdown would then
either be activeateable across the whole arrow or not be activateable
at all.

I think the problems caused by I4cab2546f6828ab3c76ba8a4e06601904a06502e
are not still around today, however they did mask problems caused by 
I6a5b26b42e4cf77a070452042d5f7a242e874bc0 which made the dropdown break
when the core position didn't line up.

To fix this, we can revert to using the original uno-command-based
approach to handling dropdowns. I've chatted to Gokay and he has OKed
this as an approach...

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I8973fa6d2caa5558dd4c9d6c52c4cd126a6a6964
@eszkadev eszkadev enabled auto-merge (rebase) May 15, 2026 13:08
@eszkadev eszkadev requested review from gokaysatir and quikee May 15, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

2 participants