@@ -21,7 +21,16 @@ function startTour(force_start){
21
21
return ;
22
22
}
23
23
// var element_offset = $(element).offset().top;
24
- $ ( "#sidebar-container" ) . scrollTo ( element , 200 , { offset :- 50 } ) ;
24
+ var panel = $ ( element ) . closest ( '.panel' ) ;
25
+ $ ( "#sidebar-container" ) . scrollTo ( panel , 200 , { offset :- 50 } ) ;
26
+ var panel_body = $ ( element ) . closest ( '.panel-body' ) ;
27
+ if ( panel_body ) {
28
+ panel_body . scrollTo ( element , 200 , { offset : - 100 } ) ;
29
+ var tr = $ ( element ) . closest ( 'tr' ) ;
30
+ if ( tr ) {
31
+ panel_body . scrollTo ( tr , 200 , { offset : - 50 } ) ;
32
+ }
33
+ }
25
34
}
26
35
27
36
function fixupSVGHighlighting ( t ) {
@@ -96,6 +105,7 @@ function startTour(force_start){
96
105
} ,
97
106
{
98
107
element : '#sidebar-pairs-panel .pair-link:first' ,
108
+ onShow : autoScrollSideBar ,
99
109
placement : 'left' ,
100
110
content : "You can also execute the SPARQL query for the current pattern pre-filled with the individual source node."
101
111
} ,
@@ -147,28 +157,28 @@ function startTour(force_start){
147
157
{
148
158
element : '#matrix-container .matrix-div[data-original-title*="Precision: 1"]:first' ,
149
159
// onShow: autoScrollSideBar,
150
- placement : 'bottom' ,
160
+ placement : 'auto bottom' ,
151
161
backdrop : false ,
152
162
content : "For example, this is a high precision match of the current pattern selected on the right for the input ground truth pair (see the URIs on top). We also list how many patterns in total (including the current one) match it."
153
163
} ,
154
164
{
155
165
element : '#matrix-container .matrix-div[data-original-title*="Precision: 0<"]:first' ,
156
166
// onShow: autoScrollSideBar,
157
- placement : 'bottom' ,
167
+ placement : 'auto bottom' ,
158
168
backdrop : false ,
159
169
content : "This is a low precision example. The currently selected pattern on the right does not match this ground truth pair (but other patterns hopefully do)."
160
170
} ,
161
171
{
162
172
element : '#graph-radios input:not(:checked):first' ,
163
- // onShow: autoScrollSideBar,
173
+ onShow : autoScrollSideBar ,
164
174
placement : 'left' ,
165
175
backdrop : false ,
166
176
reflex : true ,
167
177
content : "Selecting other patterns on the right will automatically update the matrix view."
168
178
} ,
169
179
{
170
180
element : '#no-graph-radio-container' ,
171
- // onShow: autoScrollSideBar,
181
+ onShow : autoScrollSideBar ,
172
182
placement : 'left' ,
173
183
backdrop : false ,
174
184
reflex : true ,
@@ -177,7 +187,7 @@ function startTour(force_start){
177
187
} ,
178
188
{
179
189
element : '#fingerprint-nav' ,
180
- onShow : autoScrollSideBar ,
190
+ // onShow: autoScrollSideBar,
181
191
placement : 'bottom' ,
182
192
backdrop : false ,
183
193
reflex : true ,
@@ -193,7 +203,7 @@ function startTour(force_start){
193
203
} ,
194
204
{
195
205
element : '#graph-fingerprint0' ,
196
- // onShow: autoScrollSideBar,
206
+ onShow : autoScrollSideBar ,
197
207
placement : 'bottom' ,
198
208
backdrop : false ,
199
209
reflex : true ,
0 commit comments