Load full JSON on the beginning and later don't
rebuild on switching tabs.
Change-Id: I0b63c3f3dfa43a7b5cd4f580ab542e9f5022a5ec
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
this will allow to use toolboxes without id
Change-Id: Ic5eb5ac249b9d1317fccc2143f10af292f564b52
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Conflicts:
loleaflet/src/layer/tile/CanvasTileLayer.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2163918a721db540cc02a73e0d75753dbccc9996
In Writer the tiles wont be sent for margin areas so waiting for all
tiles will hang forever. This is more apparent in low zoom levels where
the page margins are visible. So lets put a cap on waiting time instead
and hope the tiles would have arrived by then. If not it will cause a
flicker, but this is better than the document freezing due to infinite
loop.
Conflicts:
loleaflet/src/layer/tile/CanvasTileLayer.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f2fe5bac7e20cb0cc1417df078a1722b55cd08a
Cancel the swipe's autoscroll animation frame as soon as we enter pinch
zoom and don't leak it.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5ae4ffc00c426fdb4f30bae5e759c77ecc88e5a3
Conflicts:
loleaflet/src/layer/tile/CanvasTileLayer.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9089ec3adf1982e19f1ff08acffed73859f75752
The fix is to avoid pinch zoom when swipe action has not finished yet.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6cc9bf01ed3411f3dceea10326c4be7a6f0914d4
Keep the lineWidth constant and equal to the 100% zoom value during zoom
animation.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7a35654cc563eead7f58f4545dca3a307fa31422
When the canvas to draw the tiles is offscreen, always clear background
and draw grids. When drawing grids for offscreen canvas, use the correct
paneOffset as offscreen canvas has a extended pane area (meant to handle
zoom out).
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I202c6cd8540f0d3e501c6290412bf511ee28176b
Earlier it used the main canvas context for clearing and drawing grid
always. This breaks the offscreen canvas contents and overwrites the
main canvas when trying to update offscreen canvas.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6fe21bd20b1862f32a1e06828b22567b566809bf
Tile section is already cleared if call arised from requestRedraw(). So
do per tile pre-clearing for async tiles painting.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I406f6cf2a9c77f81237a1be5a9e6dcf0b600a1de
RowColSelCount is used for 2 different states.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia5f68ca15881102a42016e80ea0b947c0e4d9106
Now the size and color are easier to see and update when needed.
Debugging code is deleted.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I9f89d71507a8fe7553f921e4c26c2097d3222b9b
in addition now newly added comments will be highlighted by default
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I130674753d0b34fb9afed778e99907d1848daf76
The UTF-8 decoder here was buggy, and additionally it tried to feed
the Unicode codepoints it had constructed directly to
String.fromCharCode() even if that function takes UTF-16 units, not
Unicode codepoints.
The function in question is used only on IE11, apparently, so
presumably the problems had not been noticed.
Change-Id: I78f8ecea6ce6349e4121066774ae5c3fcfa87363
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Avoid pure white and instead use another color for canvas background
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4cc9dffd19932bc631f5b880e53f8d413357d662
Some of the functions were overwritten by the child classes. They are
removed.
CanvasTileLayer was experimental when we first created it. But now it's
used for all document types.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I1687c8d3e00d24a0bb2031ab74e4a3af044d9ca7
It wasn't usable when section is added by pushSection function.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I09a9db4fe27daad857f8f941606f0853e0e03399
We unintendedly solved the same bug with Szymon (while working on
different tasks), i removed the second
check.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I33b22364b58036fb57809476ebc689d9b542b4bc
- Desktop:
- Shortcuts is now centered
- Avoid setting hard min width for document title
- Tablet: Better presentation when on read only mode
- Document name is now fully visible using all available space
- Fix layout when on using tablet in portrait
- When editing:
- All top elements are now vertically centered
- Document name uses better the available space
- Tablet: document-name-input: Fix shadow on iOS
- Safari was overriding it with its own styles
- Generic:
- Document name: do not use ellipsis if the text fits
when porting this please be sure that 81a5d029e was reverted first
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I82abe930ba5e26c004b387fbf4047de8412b8a36
problem:
when hovered over the scroll bar and then moving away from scrollbar,
mouse cursor would not be set to text even if cursor visible
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie27783cab0edfa3e264df41d584d81379e0afe79