Skip to content
Snippets Groups Projects
Commit 77e54001 authored by kidkinster's avatar kidkinster
Browse files

placed toElement as span

Niether <br> nor <a> are guaranteed to take up vertical or horizontal
space and without taking up space, they are not guaranteed to maintain
js offset internals.  Revised to use an html element that will take up
space: <span id="slave-###">&nbsp:</span>

-	modified:   src/uncategorized/slaveSummary.tw
parent 4cdddd82
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,6 @@
});
$("[data-scroll-to]").click(function() {
var $this = $(this), $toElement = $this.attr('data-scroll-to'),
$focusElement = $this.attr('data-scroll-focus'),
/*
* note the *1 enforces $offset to be an integer, without
* it we scroll to True, which goes nowhere fast.
......@@ -748,7 +747,7 @@ will
<</if>> /* closes _numFacilities */
<<print '<br id="slave-' + $slaves[_ssi].ID + '"/>'>>
<<print '<span id="slave-' + $slaves[_ssi].ID + '">&nbsp;</span><br/>'>>
<<if $seeImages != 1 || $seeSummaryImages != 1 || $imageChoice == 1>>&nbsp;&nbsp;&nbsp;&nbsp;<</if>>
<<SlaveSummary _Slave>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment