https://bugzilla.wikimedia.org/show_bug.cgi?id=50714

Derk-Jan Hartman <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #11 from Derk-Jan Hartman <[email protected]> ---
For Location map, this is caused solely by:

.ve-ce-protectedNode, .ve-ce-protectedNode * {
position: relative !important;
top: 0 !important;
left: 0 !important;
bottom: 0 !important;
right: 0 !important;
}

Disabling it returns both the markers and the coordinates back to their
original position. However, that also makes all content outside of the main box
(you can click title coordinates that are generated by an info box).

Conclusion, this was probably done to counter the effects of absolute
positioned elements and causes 'fallout' for relative positioned elements. One
way to fix this is with a bit of JS.

var elements = $(".ve-ce-protectedNode").filter(function() {
      if( $(this).css("position") === "absolute" ) {
            $(this).addClass("evilabsoluteitems");
      }
});

And then assign the above css only to those elements. This is probably a rather
'expensive' operation. Ideally, we would just get rid of absolute positioned
elements (.topicon, coordinates, FA/GA etc icons), but that's probably going to
be near impossible. A third option might be to add a classname to all these
elements that VE can recognize and then apply this styling to it.

The question of the railway template seems more complex. I have a suspicion
that there is actually a coding error in those templates, since I see problems
with columns/rows counts on those pages. That would also explain why they take
long to render in parsoid, it likely makes it complex to render the pages.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to