Commit graph

10501 commits

Author SHA1 Message Date
Tamás Zolnai
23d1adcbcf cypress: mobile: Add some tests for changing shape properties.
Change-Id: Ibd437591c9b32af242416aadcbe5683ddfeb04c3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88874
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 16:15:19 +01:00
Ashod Nakashian
ee345a5ad2 leaflet: no keyboard with text selection
This prevents font change from showing the
keyboard. The downside is that the user can't
change the selection manually and retain
the keyboard (say, to delete the selection).

Change-Id: I97666fd7df6afb8277c627802c8402a6c45259ee
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88907
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-18 15:04:02 +01:00
Ashod Nakashian
40fd469611 wsd: minor cleanup
Change-Id: I5b589d6cdb74f7f3a0c96ca2086500f6975a94b9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88369
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-18 15:02:46 +01:00
Ashod Nakashian
8c26be1ee7 android: hide the keyboard after creating new doc
Also, when cancelling the new doc creation.

Change-Id: Ia84eae1f69c6018b98437327cdc67a923632b3dd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88883
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-18 15:01:27 +01:00
Tamás Zolnai
364623c87f mobile: Fix css media rules to work with mobile emulation / cypress test.
Restore the media rules we used earlier for mobiles.
So for mobiles it's enough to have a small screen size,
for tablet we allow bigger screen size, but only with
special pointer properties.

Change-Id: Ic45f05c516ec44cd39c58463d8bf1907ec63c25a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88922
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 14:31:00 +01:00
Tamás Zolnai
1999f12b35 Revert "Revert "Mobile: change all media queries to:""
This reverts commit 55d067bfee.

Change-Id: I2077276e70e16324031b393a58bf802c3efdcb4f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88921
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 14:30:42 +01:00
Michael Meeks
373128a5b3 Install a Kit config that disables complex text options.
These should be re-enabled if your locale looks like it needs them.

Change-Id: I94759349538a7d024797f2b98c35861ccfb71c56
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88767
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-18 12:08:19 +01:00
Miklos Vajna
d725ecbb56 test, UnitEachView: increase the timeout
I think this is the last case where sanitizers cause enough slowdown
that the test fails due to a timeout. The new limit is 4 minutes, the
test passes for me in 2m20s with sanitizers.

Change-Id: I7fccb593d67908bfaeba8eb8715d00cce48e84fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88916
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-18 11:32:31 +01:00
Tamás Zolnai
a043f549e1 mobile-wizard: Hide beginarrowstyle and endarrowstyle items.
For closed shapes these items do nothing. These items have
an effect on lines, curves, open polygons, etc, but the insertion of
these items are not supported by LO online now.
Using these items also makes mobile wizard to get into a wrong
state when trying to select an item or trying to get back with
the back button.

Change-Id: I134741de675fe02112ef93f0c4dec957750adfff
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88876
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 11:29:30 +01:00
Tamás Zolnai
481e536f74 mobile: Make line width spinbutton readonly.
Entering a value directly into the spinbutton does not work.
It must be because we support only some predefined values
for line width on the sidebar. So don't allow to enter
a value directly, user can use the plus / minus instead.

Change-Id: I65f8b172308244a13761330370acc1ef4d5381a0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88875
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-18 11:29:06 +01:00
Tamás Zolnai
55d067bfee Revert "Mobile: change all media queries to:"
This reverts commit ef48e44c0e.
2020-02-18 09:19:34 +01:00
mert
b783cb30e8 mobilewizard: pan the document area to top on presentation
WHen opening the wizard on presentation, the document is chopped in half
and there are a lot of grey area on the top.

Change-Id: I46bd329adcf551c94734998b240a251e1cec4e8d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88190
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-02-17 22:27:04 +01:00
Ashod Nakashian
972691021f android: DeleteLocalRef on NewStringUTF
Change-Id: I23a4278cc7e0b069a9a53efad404c88527a782f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88871
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-17 19:41:29 +01:00
Andras Timar
0009343003 docker: non-root container
Change-Id: I30b48fa193fe06ee42752e8ba4883c5221b28924
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88435
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-17 18:31:36 +01:00
Tamás Zolnai
dfd44336b0 cypress: desktop: Fix-up copy-paste test.
Change-Id: I936315ae60e0f1bcd245fa8c361a511a690809a8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88877
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-17 18:06:57 +01:00
Pedro Pinto Silva
ed86a313bc MobileWizard: Impress: Fix misalignment on fontColor
Change-Id: I3e2022acd313a2d429220ae2c539c08e233b6317
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88865
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-17 16:01:31 +01:00
Henry Castro
e10e9335c5 loleaflet: allow browser detection when loading html page
Move the code related to browser detection immediately
when loading html page to be accessible to all javascript libraries

Change-Id: I442cf5ab8e9452bffa5a760768e8a3e38c1c3c21
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88744
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-17 15:59:15 +01:00
Henry Castro
cefcfcfe19 loleaflet: mobile: use hyperlink tag for context menus
Change-Id: Iac83687794c90ff3439e7a5c833d24007ec52ec3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88545
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-17 15:58:11 +01:00
Andras Timar
ef37f40665 docker: expose port 9980 in Dockerfile (useful for inter-container communication)
Change-Id: I9596dfe4909a904d458ed054d71ab4fea45adebe
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88434
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-17 15:55:38 +01:00
Pedro Pinto Silva
ef48e44c0e Mobile: change all media queries to:
- Include phablet size
- Ensure that the mobile css rules do not kick in when on Desktop (900px window)
-- Detect if the primary input mechanism cannot hover at all or cannot conveniently hover (hover:none)
-- Detect if at least one input mechanism includes a pointing device of limited accuracy (any-pointer:coarse)

Change-Id: Idf1494acbd52ecd40e9082c8cf6f4ce88ecf9ac6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88862
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-17 15:53:33 +01:00
Henry Castro
bb6f13d94d w2ui: remove unused components
w2ui is bundled with: w2grid, w2layout, w2popup,
w2tabs, w2sidebar, w2fields, w2form

But they are not used in desktop nor mobile and
it is preferable to remove the dead code to reduce
bundle size, parse with mobile devices.

If in a near future, these components are used,
still we can restore the components.

Change-Id: I522f01a73217635acc9828a54006111fa196636d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88735
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-17 14:57:19 +01:00
Andras Timar
a207bc4858 localize the buttons on vex.dialog.confirm
Change-Id: I24ab50b80e51c293a4ad71c6e5ea80bfda902883
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88860
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-17 14:51:19 +01:00
Michael Meeks
6bdf561049 Share the Kit environment setup code.
Particularly configuration layers so we can tweak mobile config
easily.

Add core source files from configmgr for breakpointing convenience in
the iOS project. Add loolkitconfig.xcu to the iOS app bundle. Use
${BRAND_BASE_DIR} instead of a compile-time LOOLWSD_CONFIGDIR literal
on iOS (because there is no compile-time constant path to the app
bundle). No "registry" directory directly in the app bundle any longer
on iOS, a corresponding change in core.git moved that stuff to be
under "share", like on other platforms.

Change-Id: I6672efc0505abf27297c4758118a20992b10ceb3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88765
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-17 14:49:06 +01:00
Miklos Vajna
8c9e539586 test: improve timeout handling in getResponseMessage()
Sometimes unit-each-view fails on me in a situation like this:

21:00:13.331257 [ loolwsd ] TRC  debug, testEachView: waiting for message, timeout after 20s| UnitEachView.cpp:66
21:00:20.429615 [ loolwsd ] TRC  debug, testEachView: response is empty, will fail| UnitEachView.cpp:72

I.e. for some reason ws.poll() returns after 7 seconds, even if the
timeout at test/UnitEachView.cpp is clearly 20 seconds.

Fix the problem by trying again in case we got no data -- we'll still
break from the loop on timeout.

Change-Id: I913ecd692f350b9deb38705a0a2d24e8b3c799a0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88846
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-17 10:09:05 +01:00
Aron Budea
40f9341d44 loleaflet: Remove generic sidebar toolbar button in Impress
It was introduced as a partial fix to sidebar deck toolbar buttons
not showing pressed state in bcd7af9657
but causes issues.

Hiding/unhiding by mixing the generic and specific sidebar buttons
can permanently hide the sidebar.

Change-Id: I436d296698dde2aed7f0a3aab268e561767013b7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88830
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-17 05:06:14 +01:00
Michael Meeks
701cb6a230 tdf#130673 - kill obsolete locking.
This dates back to 2016 and our pre non-blocking and pre-unipoll state.

It is no longer necessary - a single thread reads all data from the
socket and feeds events into the Kit process; much cleaner.

Change-Id: I46ad6806a1e0cdbb0e5cf4ea5d3e5e5078d3391a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88741
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-14 23:33:49 +01:00
Jan Holesovsky
ceec4f0505 android: Actually override window.open to always send the HYPERLINK on mobile.
To cover potential future developers adding window.open without knowing
it might break mobile...

Change-Id: Iadad985ac6fad9b9f068f224fd8fb21f073bead6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88732
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2020-02-14 18:27:51 +01:00
mert
1f04f15532 android: show progressbar at first start of the document
Copying the assets takes some time at first install&start
so showing progressbar is a good idea for user to wait

Edit: ConstraintLayout implementation added in build.gradle

Change-Id: Ia38259cb3ae1b25983a4067fce500f2700c2c79f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88548
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-14 18:19:14 +01:00
Tamás Zolnai
466eedabb0 cypress: mobile: Add some basic tests for spellchecking context menu.
Change-Id: I9ff2ce361670e407e8823f08c253e60bde3e8657
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88719
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-14 16:23:49 +01:00
Jan Holesovsky
2174206de1 android: Don't hang after returning from a hyperlink.
It seems that it is actually the webview that gets into a weird state
after returning from the url.  Unfortunately intercepting the calls via
shouldOverrideUrlLoading() in a WebViewClient does not help, so the only
way seems to be to make sure we actually don't have any clickable URL
anywhere, and for the rest, we issue a 'HYPERLINK' postMobileMessage...

Change-Id: I62dc2cfbe867e97aec7fac5f83c4399814ef2ce4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88720
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-14 15:43:58 +01:00
Dennis Francis
0ca8e3b639 Lets have Hammer pan listeners on scroll-container...
and delegate the pan events to L.Map.TouchGesture's pan handlers.

This solves the problem that if one starts to pan the sheet from
near the right edge (where the vertical scroll div exists), no
panning takes place. This is because the vertical scroll div
is managed by custom jquery plugin and has a high z-index and
mapPane is not an ancestor of it, so mapPane will not get the
touch events even with event bubble-up. But its ancestor div
'scroll-container' still gets touch/move events and has the same
size and location as that of mapPane. So we just need to register
Hammer for pan events for scroll-container and delegate these events
to the original pan handlers of mapPane without any change to the
event coordinates.

The scroll widget and the drag-rail still function as usual as they
are succesors of scroll-container and they get all the events they
need to handle.

Change-Id: Ie4ffe07a0889c5710b2c6d09e4eb90f0671b5ad0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88712
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-02-14 15:26:07 +01:00
Andras Timar
a015b15e8c Remove hardcoded tab name "Sheet1" from empty spreadsheet file.
The name of the spreadsheet tab "Sheet1" was hardcoded in content.xml
as 'table:name="Sheet1"'. If we remove this attribute, the name will be
initialized according to the user interface language, which is the
desired behaviour.

Change-Id: I3b5a1a57f958cfd8f3ce573340fd76c49ce0a444
2020-02-14 13:56:12 +01:00
Jan Holesovsky
7c90a32b51 android: Copy data back if the content: URI allows that.
So that saving back to the apps that called us works (if the app gave us
the permission to do so, that is).

Change-Id: Idaf47f1d1cf9ea3fef57ac885fc6b91bc4f84be4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88632
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-14 11:03:28 +01:00
Miklos Vajna
7214fe1634 Restore "tests: Disable unstable unit test."
This restores commit 5c8a224e2d, which
disabled the unstable testReloadWhileDisconnecting testcase. Later this
was reverted by commit 4fc7bc76db, but
nothing was really done to improve the stability, so go back to disabled
for now. (Till somebody has time to debug & fix the root cause here.)

Change-Id: I26ea40a81cf9e2673f2397221c85e6f9dedc4052
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88669
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-14 09:59:23 +01:00
Tamás Zolnai
f7d232d758 cypress: Create workdir in the builddir.
Change-Id: Ief5a74412b7e12350d83b3af4345bf813288065c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88628
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-13 20:14:18 +01:00
Tamás Zolnai
3b500642d4 cypress: Fix build failure related to field insertion.
Use en-US locale. In the tests of date / time fields
the date format contains the locale, which was set to en-US
originally.

Change-Id: Ida56dd8a3e64b0c81d70d010f3aabf40da7d73a0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88620
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-13 18:53:34 +01:00
Henry Castro
a420aef10d cypress: makefile: fix running specific test
buildir != srcdir

Change-Id: If3f33b546d9c6a95ba214d2d26213ca95fe52e2d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88605
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:31:04 +01:00
Henry Castro
ff7cd32ba2 cypress: ensure English locale
My browser is Spanish by default

Change-Id: I2f3a2aaf7a6b0856c778dc9b943e23f8c168a394
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88568
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:30:29 +01:00
Henry Castro
c2de19b368 cypress: makefile: fix build dir expansion
builddir != srcdir

Change-Id: I8243fb28782bbe123b65ec86a36770323092b9f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88561
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:29:51 +01:00
Henry Castro
0c79556128 cypress: configure: fix symbolic links to files and folders
builddir != srcdir

Change-Id: I7baaba5f173d209cfb6cbbc5a61cf07a66a51eaf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88560
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:29:16 +01:00
Tor Lillqvist
58205c9818 Bump version to 4.2.1
As a build of 4.2 has been approved for release in the App Store, we must bump
this before any new build can be uploaded, even just for TestFlight.

Change-Id: I60de542eaf6d10776ad287c8c9c5d36e0feed70c
2020-02-13 16:14:59 +02:00
Pedro Pinto Silva
6d3e88782e Fix Zoom controls:
- Percentage sometimes appears sometimes it doesn't. Removed percentage from values and instead added as suffix (via css)
- Content width changes. Fixed by setting a default minimum width

Change-Id: I4c2017ceaa98c97f06c7bba4dfe0f3aded9d605c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88608
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-13 15:08:06 +01:00
Pedro Pinto Silva
17b2e7fb2b MobileWizard: add remove icon
Change-Id: Ia617a105cfc3c371edfe2bfd0072a9e85935cca3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88607
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-13 14:32:08 +01:00
Miklos Vajna
955f662294 test, unit-each-view: increase timeout
With this, the test passes under sanitizers as well.

Change-Id: I777e177d4f171328744cf83386276752d51700cc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88584
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-13 11:13:32 +01:00
Jan Holesovsky
f7663f37a2 android: Control the keyboard appearing directly in TextInput.js.
And add one more trick: If the keyboard is not supposed to be shown, set
the read-only attribute for the textarea before the focus(), and remove
it again after the blur().

Change-Id: I5ff4d0e093cb70737af205c04951d8dd58a35831
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88587
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-13 10:28:45 +01:00
Michael Meeks
3d029cb6d0 Instead of zooming each time we resize, instead keep zoom and pan.
This helps us smoothly follow the cursor, and to adapt to less
space available when eg. the wizard or the keyboard pop up.

Ensure we do the right zoom-to-fit on the first call, interestingly
if we do not do that - we get just a single tile at the top left (que?).

Change-Id: Ib26f9b474caa631028e18e790dd50c058cbaef3b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88577
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-13 10:10:02 +01:00
Michael Meeks
6543ad21bb mobile: Delete insertion - use graphic selection rather than clip.
The clipboard population is asynchronous and might come too late.
Was missing the Delete item on Android.

Change-Id: I05515f151c8d730e2aa1cb61eceacd0c3b90c455
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88579
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-02-13 07:57:18 +01:00
Michael Meeks
1bc1034543 Avoid exception dragging during shutdown.
Really TileLayer.js should have a clean on remove that dis-connects
from drag, resize etc. but it doesn't yet.

Change-Id: Ia2c2268875187a2f1115b7d357fd56ab825bb77f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88578
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-13 06:07:14 +01:00
Michael Meeks
2adc32fab5 impress: cleanup preview invalidator & avoid null this._map on close.
Change-Id: I96f9cb217c6a479dfee91dc471ab442cd2d014ae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88576
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-13 04:48:44 +01:00
Michael Meeks
faee2bdb24 Revert "Fix removal of kit procs when they are blocked"
This reverts commit 3046c5748b.

This breaks mobile apps for now. Apparently the 'close'
forces a different ordering than expected on the Child.
2020-02-13 00:33:05 +00:00