From 77e540010612d560b47467805b0617e51f50b4b0 Mon Sep 17 00:00:00 2001
From: inducedNCS <kidkinster@gmail.com>
Date: Wed, 9 May 2018 22:30:35 -0600
Subject: [PATCH] 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
---
 src/uncategorized/slaveSummary.tw | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/uncategorized/slaveSummary.tw b/src/uncategorized/slaveSummary.tw
index f4bb708a615..b22fca3376b 100644
--- a/src/uncategorized/slaveSummary.tw
+++ b/src/uncategorized/slaveSummary.tw
@@ -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>>
-- 
GitLab