-------- Message transféré --------
Sujet : [Gambas Bug Tracker] Bug #1146: wiki incorrectly points to wrong
position on anchor click if there's a index implicit
Date : Mon, 28 Aug 2017 20:13:15 GMT
De : bugtrac...@gambaswiki.org
Pour : adrien.prokopow...@gmail.com, mckaygerh...@gmail.com, g4m...@gmail.com
http://gambaswiki.org/bugtracker/edit?object=BUG.1146&from=L21haW4-
Comment #2 by Adrien PROKOPOWICZ:
Actually, I have the same issue on Opera 12.
The problem is that the anchor element is an inline element, and since the generated index is not full width, the anchor is on the same "line" than the index.
I don't think the anchor scroll position for an inline empty element is really defined (actually I haven't found the spec, if there is any), so I guess browsers just pick one : Bottom of the line for Chrome, Top of the line for Firefox/Opera.
The easy fix would just be to make them block elements, but that makes me
wondering : why does the markdown create an empty anchor for titles ? Wouldn't
it just be easier (and lighter on the HTML markup) to put an id on the title
element ?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user