[Libreoffice-commits] online.git: loleaflet/js

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 8 14:30:38 UTC 2020


 loleaflet/js/w2ui-1.5.rc1.js |    7 -------
 1 file changed, 7 deletions(-)

New commits:
commit 152a20df3a58fc79e79d6baa6a50e755ad3faae2
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Wed Jan 8 16:26:32 2020 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Jan 8 16:29:45 2020 +0200

    Revert "tdf#129374: Make the overlay wider on iOS if it seems necessary"
    
    There is a better fix coming.
    
    This reverts commit ce7ad16087701adf9803f2dfd3b2da0eb2718668.

diff --git a/loleaflet/js/w2ui-1.5.rc1.js b/loleaflet/js/w2ui-1.5.rc1.js
index a9e48c1b2..687a00202 100644
--- a/loleaflet/js/w2ui-1.5.rc1.js
+++ b/loleaflet/js/w2ui-1.5.rc1.js
@@ -2388,13 +2388,6 @@ w2utils.event = {
                     Y = (offset.top + w2utils.getSize(obj, 'height') + options.top + 7);
                     offsetTop = offset.top;
                 }
-
-                // tdf#129374 make the overlay wider so that it is more likely all we want to put in it will fit. Yes, this
-                // is just horrible heuristics. The sane thing would be if this w2ui code could itself make sure that the
-                // overlay thing grows in width if necessary as stuff is added to it so that they all show up.
-                if (window.ThisIsTheiOSApp && X > window.innerWidth - 300)
-		    X = window.innerWidth - 300;
-
                 div1.css({
                     left        :  X + 'px',
                     top         :  Y + 'px',


More information about the Libreoffice-commits mailing list