diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2020-02-07 13:44:03 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-02-11 09:45:05 +0100 |
commit | 002691d56c215f1df535f0fe342145f1f9964494 (patch) | |
tree | 0f5db492eaddae6d2aab007acbf9bf040320e897 /test/UnitClose.cpp | |
parent | 36eed0c6f07cef512ec83fb8c22d2c6200e7ce5c (diff) |
zoom-adjust header-height only when we have edit permissions
The patch :
-------------------------------------------------
commit ab64d2e0c315d26c358ff99548bb7353708eab6b
Author: Dennis Francis <dennis.francis@collabora.com>
Date: Wed Jan 29 13:38:16 2020 +0530
Adjust column-header height with zoom-level too
--------------------------------------------------
introduced adjusting of column header height with zoom level.
But that messes up the positions of headers in the below scenario:
1. First zoom-in or out in mobile mode before enabling edit permissions
2. Then enable edit permissions, and now the header positions are all
messed up.
This happens because the formulabar ui is show only while in edit-mode
and the resize() method is not very robust(it adjusts 'top' style attribute
with height deltas) and does not consider the introduction of formula-bar
div into account when one changes the permission of the sheet from
'readonly' to 'edit' in mobile mode.
So lets not do resize() of the column-header container before entering
edit mode and avoid complications of adjusting for the introduction of
the formula-bar.
Change-Id: Ib03f89ad7a34cbd2a3cbfb65af2a9a016b47c125
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88175
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'test/UnitClose.cpp')
0 files changed, 0 insertions, 0 deletions