Commit graph

6592 commits

Author SHA1 Message Date
Szymon Kłos
a4d834f83e jsdialog: single click activation for treeview
Change-Id: I808fedeaa26739c38b329f36bd4ed88ed53a4da3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-09 15:55:35 +01:00
Szymon Kłos
7ac1438c2a jsdialog: don't send sidebar refresh by accident
if windowId is not set it will use -1 what will
trigger sidebar refresh

Change-Id: I619d05d855a99ccf064d556463f5d8812b7b43c2
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-09 15:01:11 +01:00
Szymon Kłos
4eb115d726 jsdialog: don't share windowId value between instances
Change-Id: Ie19d62dcdbf0b3411e0f95d10a447263088f0a25
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-09 15:01:11 +01:00
Andras Timar
e465a53726 generated new pot files and translations for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic513f3254022857bdf11e28e24f0f57bb5e2d8f0
2021-02-09 10:50:18 +01:00
Michalis
6a72a0032e Translated using Weblate (Greek)
Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Michalis <michalisntovas@yahoo.gr>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/Android app
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Icca4639e715d43b8ca3f79b59fc326f346e812b6
2021-02-09 10:47:50 +01:00
Stratos Kostidis
23c9cdce18 Translated using Weblate (Greek)
Currently translated at 100.0% (17 of 17 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Stratos Kostidis <petros8280@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/Android lib
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If2883ffd4ff1656d87a29fbaf0bb651b3b7abef7
2021-02-09 10:47:50 +01:00
Michalis
d6a57a8609 Translated using Weblate (Greek)
Currently translated at 100.0% (5 of 5 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (417 of 417 strings)

Translated using Weblate (Greek)

Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Michalis <michalisntovas@yahoo.gr>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/el/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/el/
Translation: Collabora Online/Android app
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2a91b664c9c299a1cc1e7cde09a575af95aee22b
2021-02-09 10:47:50 +01:00
Stratos Kostidis
635b1c152c Translated using Weblate (Greek)
Currently translated at 100.0% (5 of 5 strings)

Co-authored-by: Stratos Kostidis <petros8280@hotmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/el/
Translation: Collabora Online/CODE welcome text
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If4d788a6907efa1f7c0fbe10a5d9421961175f57
2021-02-09 10:47:50 +01:00
Ihor Hordiichuk
61c47fc511 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (107 of 107 strings)

Translated using Weblate (Ukrainian)

Currently translated at 76.2% (318 of 417 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id505d2fcee8df286493760ecc6d624e58d8b4320
2021-02-09 10:47:50 +01:00
Adolfo Jayme Barrientos
0de1be7083 Translated using Weblate (Spanish)
Currently translated at 100.0% (417 of 417 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I949eca9c234e5a70ca7019506a53fdde0a2f6f4b
2021-02-09 10:47:50 +01:00
Stanislav Horáček
01d89c6cb6 Translated using Weblate (Czech)
Currently translated at 100.0% (364 of 364 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I473f5b9c3a8c2eee977139450e091a6489a79f93
2021-02-09 10:47:49 +01:00
Hirae
72d442de2e Translated using Weblate (Russian)
Currently translated at 47.4% (198 of 417 strings)

Co-authored-by: Hirae <hiraetari@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ru/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic8c69730622deacc519c7ec9c186ad2b2f6c5493
2021-02-09 10:47:49 +01:00
日陰のコスモス
8d2154e944 Translated using Weblate (Japanese)
Currently translated at 53.2% (57 of 107 strings)

Translated using Weblate (Japanese)

Currently translated at 53.2% (222 of 417 strings)

Translated using Weblate (Japanese)

Currently translated at 64.2% (234 of 364 strings)

Translated using Weblate (Japanese)

Currently translated at 53.2% (222 of 417 strings)

Translated using Weblate (Japanese)

Currently translated at 50.4% (54 of 107 strings)

Translated using Weblate (Japanese)

Currently translated at 64.0% (233 of 364 strings)

Co-authored-by: 日陰のコスモス <baffclan@yahoo.co.jp>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I73fdd7c96e80288936281ec19aba2acef2036972
2021-02-09 10:47:49 +01:00
Weblate
9d5acb37ea Added translation using Weblate (Greek)
Co-authored-by: Weblate <noreply@weblate.org>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20e20b16cca1a4332c25eec83816dd8e9131697f
2021-02-09 10:47:49 +01:00
Szymon Kłos
135ca46a23 autofilter: close properly welded window
send click event for cancel button as there is no
better way to close this docking window...

Change-Id: Id5f30e3d823b154117e9da7dca6bbbdef2422591
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-08 16:41:04 +01:00
Szymon Kłos
1d7bbea873 notebookbar: add run macro in hamburger menu
Change-Id: I79c0f1a81cce0a5a461137e49c2f57cad63374f3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-08 16:09:35 +01:00
Dennis Francis
0d685c5e50 Don't spill out on rectangle painting by non-integral corepx bounds
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7f8499eb002b59532cee91d1f381a45de9dd74ab
2021-02-08 16:48:47 +05:30
Dennis Francis
004fbc9b18 Added usage/functionality comments to new TS classes/functions
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id49a49356f89a1057000bd3a0363d8408bf86a86
2021-02-08 16:48:47 +05:30
Dennis Francis
a6f6c62572 PR#1341 follow-up: Fix indentation issues
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic163b024a8783c5f4b98ccdec427b72add4052ae
2021-02-08 16:48:47 +05:30
Dennis Francis
c1d9884f00 migrate cellcursor to canvas overlays rectangle
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I8ef11efdb335f1de0261a1beb35f97a95277d4a6
2021-02-08 14:32:57 +05:30
Dennis Francis
4a5fef6054 Add CRectangle based on L.Rectangle
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f3ffd6ae2293677ee77fb4a18d1ef1d643774a8
2021-02-08 14:32:57 +05:30
Dennis Francis
fbe63f6a8e overlay: paint after path removal
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id500fed81fac0b228f539b351dab35f5f6da98ad
2021-02-08 14:32:57 +05:30
Dennis Francis
77451188b7 overlay-paint: just one context save-restore pair is enough
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2142d3824888e76b1ccb34faf4171eb58206aa59
2021-02-08 14:32:57 +05:30
Dennis Francis
0b3b3fa69e make 'build-loleaflet' depend on dist version of ts -> js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I04c5f6770e4d58cdca2cbebf24656b280b906988
2021-02-08 14:32:57 +05:30
Dennis Francis
928d85f5e0 Define canvas clip region before painting
to avoid any spillage of painting off the freeze panes if any active.

As of now the CPolyUtil.clipPolygon() does not work properly so there
the updatePoly() call will paint outside the specified region. So the
canvas clip helps.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2b0b9f767bb04cf504323e087cad456fe04eb5b0
2021-02-08 14:32:57 +05:30
Dennis Francis
9cdbd051f7 skip overlay pane-paint if no intersection
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0d29750b0e8eaaeab01b7a867292002379be5476
2021-02-08 14:32:57 +05:30
Dennis Francis
7787f6f2a5 Introduce CPolygon based on L.Polygon
Also add CPolyUtil based on L.PolyUtil that contains dependant
algorithms for polygon clipping.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I4d43fd208e47207116bd2253733fe6205fcd6c48
2021-02-08 14:32:57 +05:30
Dennis Francis
6ee897bee3 render overlays correctly for each freeze-pane
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I06477dbd8bb6b0bb369104a03f6472af59a516ee
2021-02-08 14:32:57 +05:30
Dennis Francis
026f5fac4a overlay painting after async tile paint calls
The overlay needs to be painted only for the tile area.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I725a6b656d8261a90e6debbea0478a0581822b40
2021-02-08 14:32:57 +05:30
Dennis Francis
655dbd79f5 compute rings and bounds only when point-set...
is updated and not do them every time updatePath() is called.
Also compute both rings and bounds in a single pass over point-set.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I718f33d3ecd97da333fab0dd1fd3312d16ea6aa9
2021-02-08 14:32:57 +05:30
Dennis Francis
dac8d84efa CanvasOverlay.js depends on all typescript files in vector/
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I235a2dcd681476331cf4224d368eca7a8547e0e8
2021-02-08 14:32:57 +05:30
Dennis Francis
3a4f98852c overlay-origin must be negative of documentTopLeft
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2c42627261211b975c3b3ef1aa18b33c3b4b55a1
2021-02-08 14:32:57 +05:30
Dennis Francis
b27ae65b39 redraw on construction
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ia0c6b0c8db22ec7b53d5acc16cb53a5cd99a7780
2021-02-08 14:32:57 +05:30
Dennis Francis
5906d5ba94 Introduce CPolyline.ts based on L.Polyline
CLineUtil.ts is also introduced from L.LineUtil which has
implementations of dependant line algorithms.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5ff24c8daf0391553c45db74d6f512ccc80fcc97
2021-02-08 14:32:57 +05:30
Dennis Francis
58e309f0af updatePoly should assume path is not closed by default
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6af26cbabeadad59d4a23758d481bce1913abe19
2021-02-08 14:32:57 +05:30
Dennis Francis
e0193b732c add bounds getter for CanvasOverlay
.. since the subclasses of CPath need to use it for clipping the
contents to visible area mainly for performance reasons.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I86c7a46e498b69b55990a8b4423cbf1da5efae71
2021-02-08 14:32:57 +05:30
Dennis Francis
e29d88dde6 mark CPath as abstract and renderer member protected
as CPath's subclasses need to access it.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I04b42e9b867d308855a62a7e1b82650dc75c57a1
2021-02-08 14:32:57 +05:30
Dennis Francis
fa9b856d10 allow CBounds object construction with 0 or 1 CPoint(s)
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I69b7cf8ff979d6e170aeb1ee978e500450ed997f
2021-02-08 14:32:57 +05:30
Dennis Francis
d28b66df7a CanvasOverlay.js is dependant on layer/vector/*.ts
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I87640e81fe11dee7b87eb376a9c9871977bc6710
2021-02-08 14:32:57 +05:30
Dennis Francis
38f05b60f5 Add CBounds.ts based on L.Bounds
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If16b995f75db0db14cbfe012ae2c206d89a885b7
2021-02-08 14:32:57 +05:30
Dennis Francis
4e57357032 Add CPoint.ts based on L.Point
and use that in CanvasOverlay and CPath.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id3cf0418396dc72b47aeeadf22e78ce3aa1fff4e
2021-02-08 14:32:57 +05:30
Dennis Francis
c5800a676e Add CPath.ts based on L.Path
The generated js for CPath.ts is added to the generated CanvasOver.js
for now using

/// <reference path="CPath.ts" />

as there is no support for modules in ES5.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I72bf2ab6f299641925c72b484f63e755ba4e61d4
2021-02-08 14:32:57 +05:30
Dennis Francis
0d75324379 introduce CanvasOverlay and its section
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I47d2f739b0d98c3926208358951e7240e632153f
2021-02-08 14:32:57 +05:30
Dennis Francis
66f145b696 Allow access to tileSection manager
The overlay section will need access to tile section manager to make it
paint over the regions it wishes to "erase" before painting the updated
paths/objects. When overlay's objects are updated, their paint will not
be via onDraw, so tiles are not painted beforehand.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9ea142af69675ee6e0da7132ee36f399facb8ead
2021-02-08 14:32:57 +05:30
Dennis Francis
4f7662484e allow canvas-context getter from container
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6b5ba64220dae32c6155b7f6edb12c949ead33d9
2021-02-08 14:32:57 +05:30
Gökay Şatır
1c147de68f Calc: Minus & plus sign hairline drawings.
Row and column group controls' plus & minus signs were not hairline. It is fixed.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I964f0e3916df91b110ba17e819c24d589c6bd3cd
2021-02-08 12:01:09 +03:00
Gökay Şatır
969ddc0927 Calc: Fix document-container position.
When column groups is used, document was badly aligned.
This commit fixes it.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If572735a935fae1db2a94b66711b0a9080490a37
2021-02-08 12:00:52 +03:00
Henry Castro
d75a40317b loleaflet: set last cursor position with server side ...
coordinates.

Record the last cursor position before any transformation
to (lat,lng) coordinates

Change-Id: I183c55da5cd0f9e3338c411382708afc4b945c01
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-02-05 17:33:11 -04:00
Szymon Kłos
904ceed516 jsdialog: remember scroll position on update
Change-Id: I81daf2f33982b596637501590aaa111f084fad81
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 16:44:12 +01:00
Szymon Kłos
ec556113ea mobile-wizard: disable ExtrusionToggle
Change-Id: Idb68f59f4bb25a57a2cee17df61a2e5945d50cf9
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Szymon Kłos
64e97e5661 mobile-wizard: justify fontwork shapes
Change-Id: I2adfc059669fc4dbe73293d6024839857f77abd3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Szymon Kłos
b48d215a18 mobile-wizard: fontwork property panel
Change-Id: I5279eba27ee6848a5bde539dc30f4e7a37e0eb89
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-05 14:27:54 +01:00
Tor Lillqvist
4bb6363b35 Bin unused STD_EXTRA_WIDTH
Change-Id: If436fba45bbd6669a414c20579f13ac0dadd8241
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-02-04 19:28:13 +02:00
Rizal Muttaqin
c03940312a Add download as csv icon
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id77468703bb941e853a7c1419b386d5a8c91fde7
2021-02-04 13:23:57 +01:00
Pedro Pinto Silva
069684ca97 Expose CSV as an additional download option...
* on classic
* on notebookbar
* allow it in readonly mode

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I29ed6ed40810ba0e59cdb4d55b9898d016653678
2021-02-04 13:23:57 +01:00
Tamás Zolnai
bb7af8b733 cypress: throw and Error object here to get backtrace in cypress log.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I8bb36da750f6bb0855d0118b139e2090e2dbcc85
2021-02-03 14:56:32 +01:00
Tor Lillqvist
c999c5c86d Also save cellviewcursor: messages for handling when we are ready
Without this, when joining an editing session of a spreadsheet, you
don't see the cell cursor of another participant until they move the
cell cursor.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I87b8ad584d57bce52b39706fa9f0bbf56a59082a
2021-02-03 15:54:11 +02:00
Gökay Şatır
18c4ad5584 Calc: GroupBase.js is added for shared functions.
Row and column groups share some of the functions. They are moved into a file.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I268daf2c293f0cac150587a23001f873e23b4dfc
2021-02-02 20:31:37 +03:00
Gökay Şatır
06293d3530 Row & Column Groups: Some fixups.
More comments are added.
Early exits are used.
Unused functions are deleted.
Some functions are renamed for better explanation.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If835fbb9bbae6898c4847b2c428a3e36f042b60a
2021-02-02 20:31:37 +03:00
Tor Lillqvist
cd1a0c8d27 eslint is pickier in the co-6-4 branch, so cherry-pick fix here, too
Change-Id: I47d09ea9e3da0c60f07821dee9197cbefc7080dc
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-02-02 19:14:45 +02:00
Gökay Şatır
f9ebb450ab AutoFilter DropDown: Replace div reference with section reference.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I82ac56f320083f3fe0ba3ee6104cad341c69120b
2021-02-02 09:49:48 +01:00
Gökay Şatır
1fdcc0baa5 CanvasSectionContainer: Enable creating test divs for automated tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If735aa39fc98959578904e3ea86b893449a119b5
2021-02-02 09:49:48 +01:00
Gökay Şatır
8a8f9f4e6d CanvasTileLayer: Set canvas border for Calc column groups.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I87bd288436cdbdcf866dead00d47bc6aa5f72f4f
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
ad7a01ac93 CanvasSectionContainer: Add onRemove function.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2bc45c36a104b6b76f9a18e18dcda39b8b3d2072
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
1413ee6768 Calc: Adjust header and group font sizes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I09b0146abd1d16305978c212f5cf5446e1b2ec54
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
5f1090dcb1 CanvasTileLayer: Position canvas on mobile, tablet and desktop.
Remove "spreadsheet-row-column-frame" div. Since row & column headers and groups are drawn onto the same canvas with tiles, that div shouldn't exist.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
d576895c57 Calc: Add Row Group and Column Group sections.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ib44e5e6a9e047c347a239a155b86f091467f5149
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
2d8df66167 Calc: Draw Column & Row Headers on tiles canvas.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Gökay Şatır
e2dbff061a CanvasTileLayer: Give id to tiles canvas.
Centralize re-painting event.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idc37a4ce2206627f1a30162652169fbc7ae0ce03
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
2021-02-02 09:49:48 +01:00
Szymon Kłos
969f9f9860 Revert "Don't block handling of touch events"
This reverts commit 284e8ce308.

We have to disable panning handler to avoid panning when resizing
the selection using handles.

Change-Id: I9994b3e9ba32bc3e43567d43e547eada311c050e
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-02-01 17:43:27 +01:00
Pedro Pinto Silva
b0a38ebe21 loleaflet: server recycling: Improve message
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4cecb72acc927707b68711478c5474326d456d82
2021-02-01 15:01:07 +01:00
Henry Castro
71c595ca4b loleaflet: do not update cursor from other views
Change-Id: I5e0cd6cfa6c5a5db61dcfbfa557c9ec3bc4c8977
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-02-01 07:19:45 -04:00
Tor Lillqvist
989d57b580 In Cypress tests throw error if dialog image cache is inconsistent wrt server
We have a dummy spreadsheet document with a column of cells each in a
different font size. The font size of the current cell is displayed in
the sidebar.

In the test we step through the cells first downwards and then back.
Thus the sidebar image that contains the font size will be updated as
we step through the cells. At first nothing will be found in cache,
but when returning, the images should be found in the cache. If the
cache in the JS client is not consistent with that in the server we
will throw an exception.

Change-Id: I439263c7923d985679fafa0125cd2d7f635e0995
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-29 12:08:58 +02:00
Gökay Şatır
1df8fc91d2 Revert "Disable Freeze panes menu & notebookbar entries on tablets."
This reverts commit 6c2d725c58.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I50c248e3d2dfc7b06a9d0d2c1da3fe8a52d26560
2021-01-29 10:25:45 +03:00
Pedro Pinto Silva
3b398d8e9d dev doc: postmessage-api: Favicon and styling
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I469051b3bd4fd8371ab3d0593922c71d15272445
2021-01-28 19:41:41 +01:00
Marco Cecchetti
445fe41118 cleanup dev doc: loleaflet and postmessage references in separate files
references.html has been replaced by 2 files with content LOLeaflet
and PostMessage setions respectively.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Id095da5f1ab11c96d090bceab921d74b4fe68482
2021-01-28 15:29:12 +01:00
Tor Lillqvist
ffa940933d eslint is pickier in the co-6-4 branch, so cherry-pick fix here, too
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I06d49a56853fe391c4d137208865498a36c7a1e3
2021-01-28 14:14:03 +02:00
Marco Cecchetti
d869144abb cleanup doc: further cleanup reference.html: small fix-up
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I031535af28470a66824db6c04f9693e6f6ee1771
2021-01-27 15:42:57 +01:00
Marco Cecchetti
b0315c7c20 cleanup doc: further cleanup reference.html
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I031535af28470a66824db6c04f9693e6f6ee1771
2021-01-27 15:42:57 +01:00
Marco Cecchetti
b60f48d94a dev documentation: removing misleading leaflet API documentation
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: If417805d7c0620921b2b8e35101b6489caafaf2f
2021-01-27 15:42:57 +01:00
Tor Lillqvist
944e831b3d Add sanity checks to the PNG cache code in loleaflet
If the client cache seems to be inconsistent with what the server
thinks, send an ERROR message to the server that will be logged.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ic7f9d7fb15b2c34f7a6cd2decbacaa7745ac9389
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-26 16:55:04 +02:00
Henry Castro
34a0aa04ed loleafet: simplify update max bounds
it is not necessary fire 'updatemaxbounds',
because the association map <-> document layer
1:1

Change-Id: Ic41ab328f7d3d331624107a13acf9f1fdd4c46df
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-26 08:08:28 -04:00
Tamás Zolnai
1a7f2b5122 leaflet: reset selection before opening the slide wizard
Taping on the selected slide's preview should open the mobile
wizard with the slide properties. To achive this also with
a selected shape on the slide we reset the selection first
and open the mobile wizard after that.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie60ec9bff01d143e6ca79fe4e32849b2a4fb3bc6
2021-01-26 12:32:36 +01:00
Tamás Zolnai
fd14e92314 Revert "leaflet: wsd: select the page before opening the slide wizard"
This reverts commit 0a54b23251.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Id41a85d920a470d784f4c6158bb25c9ba46f43d2
2021-01-26 12:32:36 +01:00
Tor Lillqvist
f1e074f6bc Add caching of tunnelled dialog images
The same cache size is used in server and client. The caches use the
invalidation algorithm. Pass the hash of the pixmap in the
windowpaint: message. The client stores dialog images in its cache.
The server stores hashes of the images. When the server knows that the
client already has an image cached, it sends just its hash and the
client will use the cached image.

Pass the size of the cache to the client so that we don't have to keep
the the cache size synchronised in two places in the code.

Change-Id: Ie6cbfca79a9ede48fcc115e3acc669b925bb624e
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2021-01-25 17:48:33 +02:00
Szymon Kłos
80fd6420f7 notebookbar: partial updates support for listboxes
Change-Id: I90141f42bc5f1d448f3b81a926a4abef297e1a8c
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-25 12:35:13 +01:00
Szymon Kłos
3ac8da5eaf notebookbar: reuse font selectors
keep full code of each field in one place
iOS button was hardcoded and created in event
keep the previous structure but style at build time

Change-Id: I83bb808997c04206af7678b24ae1f8ed75f7b2a1
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-25 12:35:13 +01:00
Gökay Şatır
c49c135971 CanvasSectionContainer: Ensure that integer pixels are used for pos and size.
Make borders hairline.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Id0d690903a6f51316b318486baac6c49b62150d3
2021-01-25 13:13:00 +03:00
Gökay Şatır
f33f24c16c CanvasTileLayer: Canvas is moved outside of "map" div.
Canvas element's drawings will include part of UI outside of map area. Its size should be larger than tilelayer's and map's sizes.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I89bf79ccfe0240abdb031b937626b0bb81f3ed6f
2021-01-25 11:53:59 +03:00
Pranam Lashkari
77a344727d leaflet: use marker to select the reference range in calc formula
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I97839d01d88796e3a2c8c5ff3a27c05b6802578d
2021-01-25 09:50:26 +01:00
Pedro Pinto Silva
4cb1f81d84 Mobile: mobileWizard: style comment card's contents
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8bd166209694155f09ed958c216fc9850b01bcc4
2021-01-22 16:33:06 +01:00
Pranam Lashkari
24560b3555 leaflet: fixed hyperlink popup being mispositioned around the edge
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1123715cfadd8e752adb8f9a6bdf697006271390
2021-01-22 18:59:20 +05:30
Szymon Kłos
44fd1c6b51 jsdialog: warn when update not applied
Change-Id: I8adaae41cb04dceea768f04b00200cd1e9867122
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
4183cca9dd jsdialog: on update build in the same place
This helps to keep control in the same place
if node has more siblings

Change-Id: I5922c5a34b85bace169504646e92fe892fbaf3a5
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
7a7bedfff4 mobile wizard: partial updates
Change-Id: I792d68104f61b377089296b130142215f83d2c24
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
a205a4c97a notebookbar: promote single items to bittoolitems
Change-Id: I7b7e2ac627d9bb50a1fca7f5aa1e40f86d5397d7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Szymon Kłos
88e710a54d notebookbar: update cache with missing elements
Change-Id: I200cce9b89a3bb779a74cb98ad0c63caab997448
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-22 10:24:33 +01:00
Pranam Lashkari
f144df98c8 leaflet: blacklist language selection on misspelled words in mobile
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I149539983897d20828dc6e32ed053c9b7e279ad4
2021-01-22 01:34:30 +05:30
Pranam Lashkari
4962386d94 leaflet: fixed missing selection overlay while selecting row/column
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I85e41ffc9de69de9543b8e1ccae177054a9375ac
2021-01-21 23:59:02 +05:30
Szymon Kłos
92da9ab48e notebookbar: cache impress draw tab
Change-Id: I3a021ece0673593e38561ac2aeeb79e0bc7be4a3
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
e094f042b8 notebookbar: cache impress table tab
Change-Id: Id9f77933eff714fb9f7a1ae44c34161a6b37bcdc
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
3d07c178d1 notebookbar: cache impress review tab
Change-Id: I1991ff61c5553e95a0ed3ae564db8a2c12c5e058
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
1a977cc22b notebookbar: cache calc review tab
Change-Id: Ibf662b9794e5b68be448f24c6aa22e428d20905c
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
f926511ad1 notebookbar: cache calc data tab
Change-Id: Icc4f131a4f223b6830393bd1fe0c3fbb8dda0df4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
6f56f79299 notebookbar: cache writer draw tab
Change-Id: I1b8f0b2d5bed8bc2c658b1805ca8b5e862f325f7
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
854a75c81a notebookbar: cache writer table tab
Change-Id: Ic19ac84acb297fc79e769d4189ec2365d8786204
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
17796f17ad notebookbar: cache writer review tab
Change-Id: I6f02c1b6e00da72089bb126381f38bb7150e3d1d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
b94e9773f7 notebookbar: cache writer references tab
Change-Id: I239efd1506c1130e92ca5d503caf42eadb48524d
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
882fbd0e96 notebookbar: cache writer layout tab
Change-Id: I3c2b505c610008436ad7b2d06071a006ef5f37b5
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:21:51 +01:00
Szymon Kłos
e24b927eb1 autofilter: partial updates support
Change-Id: If2c67954e044bce1fc7338e86c1dca9b0a945380
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
01fb800043 notebookbar: don't create containers for partial updates
Change-Id: I025533ca48ca100bd7da1a48b21d7eb3f59e3bf4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
5af69a6ccd jsdialog: use one instance of notebookbar builder
+ setup windowId which is received from core

Change-Id: Iefc726a2e547d79adca669768bd3c606cb3151bb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
1f1d509ecf jsdialog: don't use static members
Change-Id: Ie0284a3c53219fcadfc63972d9ffc9188fc29175
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
06124d774e jsdialog: tabcontrol update to handle all tabs JSON
if JSON has more tabs - build in dedicated containers
if JSON has only one tab - build old old way

Change-Id: Ic960d6976ccdf60c48ca0057fdaa0ff115fca708
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
830d9408dc jsdialog: use partial updates for notebookbar
Change-Id: Iccf43dcb434695dc2be8d72f8e6fd43a659d1af0
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 15:20:36 +01:00
Szymon Kłos
b896700c3a jsdialog: accept boolean
Change-Id: Ia81f0601fdf82292991f4d00c290a9b88e217b23
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
acfce03a21 fontwork dialog: center on screen
we first create it without any content so foce the correct size
to correctly calculate position

Change-Id: I08d6a4c8ec42d5515ddd11cec508cb222d4c6ec8
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
e079b779fe jsdialog: partial updates support for listbox
Change-Id: I75a7449a053f056c6212ff4db471b22f71228936
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
40e171e726 jsdialog: partial updates support for expander
Change-Id: I398cbacb12d2342fa27df9ad4fce9e6db0c37eb2
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
6d2b234659 jsdialog: accept also boolean enabled state
Change-Id: Id991e3a6d488e0be282f5f9ad333a567632f6c67
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
96eecc4fe6 jsdialog: fix button state handling
Change-Id: I9f91ce63a5ae8d3dbdde3257c4487995920d3277
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
f8c64ec0d5 jsdialog: remove all chars instead of only first
Change-Id: Ic819167db66f97e3a4967f85bc41f5f5554fd88f
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Szymon Kłos
3796f19c15 jsdialog: partial updates for DrawingArea
Change-Id: I47ccc8afc06d27460a1c5e64dd10c0444fc03250
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-21 13:21:24 +01:00
Gökay Şatır
500ba660e9 CanvasSectionContainer: Add background color and border color.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I5d34e5ec9a1caa26ecee3dbc9dc23fb43423e29b
2021-01-21 13:48:13 +03:00
mert
8100a01c9c Fix typo that causes insertpage not to work
Change-Id: I3c0e2e2e4ef5c639c22e7562bc5602ebfea06bef
Signed-off-by: mert <mert.tumer@collabora.com>
2021-01-21 10:22:58 +01:00
mert
75f1cc3705 added insert connectors popup dialog
Change-Id: If97eb79bd697fe2e2b9cb86cbc1643e5890bf626
Signed-off-by: mert <mert.tumer@collabora.com>
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
2b5c00c861 Allow insert, delete, duplicate page for drawings
We restrict insert/delete/duplicate page (slide) only to
presentations, but they also work the in the same way for
drawings. This changes the restrictions to also take drawings
into account for this actions.

Change-Id: Ia9a3627d2144a6813f341ab8a8287743abad475a
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
6d58f0f394 Change "Slide" menu entry to "Page" for drawings
Change-Id: I25febf4287df868d4755658af992be3031e064cd
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
a478dc4229 Cleanup menubar entries for drawing (remove presentation specific)
Change-Id: If98719cfb37c05bedbeee7f239f931c769278834
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
bf0daa2dce Use own icon for drawings, don't share with presentations
Change-Id: I6cecc9869d36bc1e45a4ed88344c62e0c9adac1d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
3fa52ac5a8 Duplicate the presentation menu entries for drawing
Currently the presentation and drawing menu entries use the same
definition, but as drawings are different with different terms,
it is best to separate the presentation and drawing entires
instead of handling the exceptions all the time.

Change-Id: I078eb4ebb5014a04614d20363042b3cd75e9a36d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
400432f159 modify the toolbar for drawings
Separate the toolbar from presentation and remove icons that are
valid for presentation only.

Change-Id: I0dd74f396326b838c9a65352978a771bdb5da13d
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Tomaž Vajngerl
aa6d8af042 Separate shortcuts online help for presentations and drawings
Change-Id: Ic6290ea43fc55e78a037ac3b774cb0eb090e8ba5
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Pranam Lashkari
005132da03 leaflet: support reordering sheet tabs via drag and drop
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ibe4106aca08456410c4c524eeb8a630993737815
2021-01-19 14:14:22 -04:00
Henry Castro
7e0186600d loleaflet: makefile: fix builddir != srcdir
Change-Id: I97083c0a093a4038cb91dd618096eeb4292463fe
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-01-18 17:31:19 -04:00
Rash419
bee45ebf72 leaflet: display correct number of characters in statusbar
Signed-off-by: Rash419 <rasheshpadia419@gmail.com>
Change-Id: I93dc5c54abb3a43cdffe1b12ca3e22247ed22f67
2021-01-18 17:10:35 +02:00
Tamás Zolnai
c0ae7f8bb8 Fix "Cannot read property 'color' of undefined" error
Crash trace:
at NewClass.getViewColor (/src/map/Map.js:702:33)
at NewClass._onUpdateCellViewCursor (/src/layer/tile/TileLayer.js:1466:55)
at NewClass._onCellViewCursorMsg (/src/layer/tile/TileLayer.js:1450:8)
at NewClass._onMessage (/src/layer/tile/TileLayer.js:710:9)
at NewClass._onMessage (/src/layer/tile/CalcTileLayer.js:394:37)
at NewClass._onMessage (/src/core/Socket.js:916:24)

Caught by calc/sheet_operations multi-user test.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I56b686e8d9f27a407f1fef54808e4f65c99173f0
2021-01-18 13:36:26 +01:00
Gökay Şatır
137a757d72 CanvasSectionProps: Add an overview of sections.
We are drawing things from different files onto the same canvas.
CanvasSectionContainer is organising them. When they are too many, it is difficult to know about sections' important properties.
CanvasSectionProps keeps sections maintainable.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9e81104c30f30a47c02625ce9d6716a98958317c
2021-01-18 15:17:07 +03:00
Gökay Şatır
15bf787771 CanvasSectionContainer: Fixes.
Bugs related to ordering of sections are fixed.
addSection and createSection functions are separated.
contextMenu event is added.
Sections' drawing orders are updated for future uses.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I89127c97ad7b7dac4b293c4108c44cb6c4427134
2021-01-17 18:56:27 +03:00
Dennis Francis
95a8028f00 On resize allow recomputation of section pos and size
by resetting the isLocated flag for each section.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0ad41f20219afd8b90050bd43223843ca280587d
2021-01-16 18:12:00 +05:30
Dennis Francis
10f70ae866 fix pixel offset between grid and row headers
Sections which are not yet expanded via locateSections() can interfere
with the hitLeft() and hitTop() for sections of same z-index depending
on order of addition. So lets skip the sections for computing hitLeft()
and hitTop(). This also avoids redoing locateSections() for all sections
everytime a new section is added.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7595f5b5cfaa61d8fcfe177edd4c605d3fb7b122
2021-01-16 18:12:00 +05:30
Dennis Francis
7cf060dfbb don't leave 1px empty space near headers
when there are no freeze-panes active.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id5b651d4b1e76cd14b725d125f813d93ed031ff8
2021-01-16 18:12:00 +05:30
Dennis Francis
34578ce3fd fix the debug tile-border rectangles in red
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I93b950a5f903ed5ed2713a518911f8e37eadddfc
2021-01-16 18:12:00 +05:30
Michael Meeks
136f20b386 Use jsdom to load and execute our CSS, HTML and JS.
Change-Id: Ia7414e1fd19bf7ebfa29274d1acac5cee4837341
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-16 12:18:47 +00:00
Michael Meeks
c7d0de0877 Start of using NodeJS to do load simulation.
Change-Id: Id27ff406adc2269665aca0bbb54dd2102a4c7c74
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-01-16 12:18:47 +00:00
Tamás Zolnai
d1118b43be Fix wrong view info when opening two views close in time.
The issue is that we passed viewinfo messaged to do _docLayer
in wrong order because of the too simple delaying mechanism.

Wrong scenario steps:
viewinfo-1 arrives: _docLayer is not initialized yet -> 100 ms delay.
viewinfo-2 arrives: _docLayer is initialized now -> pass to _docLayer.
viewinfo-1's timeout: _docLayer is initialized now -> pass to _docLayer

Better to use the more sophisticated delaying method.
See _tryToDelayMessage() and related methods. They keep the order
of the messages.

Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: I335b350b1553cfdee573f7d2e57c86c4b8f9af84
2021-01-14 15:04:13 +01:00
mert
f72d394a02 Fix calc text-input focus problem on Android
Change-Id: Iacd279f741c35703807f14a9798fbe2ef0f45d50
Signed-off-by: mert <mert.tumer@collabora.com>
2021-01-14 11:27:12 +03:00
Szymon Kłos
fe5454faa6 popup: improve text layout
Change-Id: Id3700692706bb67b8e626b24a2ae9c10dff1f772
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
2021-01-14 08:16:33 +01:00
Andreas-Kainz
79374db3ae Signed-off-by: Andreas-Kainz <andreas_k@abwesend.de>
Change-Id: I3ce2be9cc6362c09725fe1692e6853f195274211
2021-01-14 06:29:37 +01:00
Pedro Pinto Silva
ad87fb854d Fontwork: layout improvements
- iconview fix layout without using hard-coded margins
- fontwork: make sure the elements start at the same left position as the title and that they occupy the dialog evenly
- hide unnecessary label
- space-around when on mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia92acf1cbf09a3e7c6e996f9a846163835b115af
2021-01-13 16:57:16 +01:00