- vertically align image snippet with active row (#26)

pull/40/head
Kai Labusch 5 years ago
parent bde4c29b0c
commit 7ebf04b517

@ -429,7 +429,13 @@ function setupInterface(data, file, urls) {
let row = $("<tr/>").data('tableInfo', { 'nRow': nRow });
row.focusin(function() { updatePreview(row.data('tableInfo').nRow); });
row.focusin(
function() {
updatePreview(row.data('tableInfo').nRow);
$('#preview').css('transform', 'translate(0,' + (row.position().top + row.height()/2) + 'px)'
+ ' translate(0%,-50%)');
});
row.append($('<td class="hover"/>').
text(nRow).

Loading…
Cancel
Save