Bug 130348 - Not the whole sidebar to edit a chart is usable on iOS
Summary: Not the whole sidebar to edit a chart is usable on iOS
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: iOS Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other iOS
: medium normal
Assignee: How can I remove my account?
URL:
Whiteboard: target:7.0.0 target:6.4.3
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-01 12:13 UTC by Nicolas Christener
Modified: 2020-04-01 09:09 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
The red area works, the part below does not work (516.11 KB, image/png)
2020-02-01 12:15 UTC, Nicolas Christener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Christener 2020-02-01 12:13:22 UTC
Description:
Editing a chart in the calc part of the iOS has the limitation, that not the whole sidebar is useable. A big part of the sidebar does not react on any actions.

Please see the attached screenshot which shows which part reacts on any actions.

Tested on 4.2 (35)

Steps to Reproduce:
1. Create/open a calc file in the iOS app
2. Insert a chart
3. Tap on the chart and tap on “Edit Chart” in the sidebar
4. On the now show chart sidebar tap for example on “Y axis”

Actual Results:
Nothing happens.

Expected Results:
The “Y axis” should be removed.


Reproducible: Always


User Profile Reset: No



Additional Info:
It seems that all the elements below the switch “X axis” just don’t work.
Comment 1 Nicolas Christener 2020-02-01 12:15:02 UTC
Created attachment 157579 [details]
The red area works, the part below does not work
Comment 2 How can I remove my account? 2020-02-20 10:46:42 UTC
Not to mention that the sidebar is too large to fit on screen. (But it can be scrolled; not sure if that is good UI, though.)
Comment 3 How can I remove my account? 2020-02-20 10:49:57 UTC
The problem can be reproduced, as far as I see, in a web-based Online "make run", too. (The exact border between which part of the sidebar reacts to input and which does not is a little different.)
Comment 4 How can I remove my account? 2020-02-20 10:55:06 UTC
If I collapse the "Elements" part of the sidebar, and the rest thus moves upward, then the elements in the rest start reacting to input. That makes me think that it might be quite easy to fix this, some calculation of what area in the sidebar should respond to input goes wrong.
Comment 5 How can I remove my account? 2020-02-20 15:30:21 UTC
Note to self: Debugging this, now looking at sfx2::sidebar::SidebarDockingWindow::EventNotify() in sfx2/source/sidebar/SidebarDockingWindow.cxx
Comment 6 How can I remove my account? 2020-02-21 15:08:42 UTC
One apparent red herring that I wasted time on was the "dockable" concept as in vcl/source/window/dockwin.cxx . I made sure that mbDockable is never set to true in the comphelper::LibreOfficeKit::isActive() case, but that did not help.
Comment 7 How can I remove my account? 2020-02-27 14:08:56 UTC
Note to self: More code pointers: 
chart2/source/controller/sidebar/ChartAreaPanel.cxx
svx/source/sidebar/area/AreaPropertyPanelBase.cxx
Comment 8 How can I remove my account? 2020-02-27 15:45:30 UTC
Debugging, the difference if I compare a listbox in the Elements part (which works) to one in the Area part (which doesn't), is that in ImplHandleMouseEvent() in vcl/source/window/winproc.cxx, in the working case the call pChild->MouseButtonDown(aMEvt); goes to ImplBtn::MouseButtonDown() in vcl/source/control/imp_listbox.cxx, while in the non-working case, it goes to vcl::Window::MouseButtonDown() in vcl/source/window/mouse.cxx.
Comment 9 How can I remove my account? 2020-02-27 15:46:49 UTC
But if I collapse the Elements part, then clicking the listbox in the Area part *does* go to ImplBtn::MouseButtonDown(). Fun.
Comment 10 How can I remove my account? 2020-02-28 15:19:31 UTC
Fix in https://gerrit.libreoffice.org/c/core/+/89722

It was much more trivial than I had imagined.
Comment 11 Commit Notification 2020-03-01 22:45:30 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "master":

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

tdf#130348: Add special case for ChartDeck, too

It will be available in 7.0.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.
Comment 12 Commit Notification 2020-03-25 07:09:11 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "libreoffice-6-4":

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

tdf#130348: Add special case for ChartDeck, too

It will be available in 6.4.3.

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.
Comment 13 Nicolas Christener 2020-04-01 07:04:56 UTC
This issue is fixed and can be closed, tested in 4.2.3 (48).

Thanks a lot to the Collabora team and especially to Tor for taking care of this!
Comment 14 Xisco Faulí 2020-04-01 09:09:30 UTC
Setting to VERIFIED based on comment 13