[Libreoffice-bugs] [Bug 140537] Unnecessary scrolling in Math's Element pane

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Feb 20 13:57:35 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=140537

--- Comment #13 from Jan-Marek Glogowski <glogow at fbihome.de> ---
A bibisect pointed to

commit 644ebf7823c85973e2724cbfcf403cb63b054bfe
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jan 28 20:40:15 2020 +0000

    weld SmElementsDockingWindow

The problem is, that the GtkViewport thinks the GtkDrawingArea is too large.
You can very easily see this, if you enable the scrollbar by setting
mxScroll->set_vpolicy(VclPolicyType::ALWAYS) at the end of
LayoutOrPaintContents.

A workaround is to additionally set mxScroll->vadjustment_set_upper(0); and
also in the mbVerticalMode branch. A fix should probably do this in set_*policy
on NEVER (and restore the old value when changed to something else?).

There is also a problem with wheel event mappings. The scroll step for VCL
comparing to weld seems to be off - VCL is much too small. But that is an other
bug.

I'll leave the patching to someone else.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210220/36a52abc/attachment.htm>


More information about the Libreoffice-bugs mailing list