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 a9e48c1..687a002 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',