1
0
Fork 0
mirror of https://github.com/qurator-spk/neat.git synced 2025-06-11 20:59:54 +02:00

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

This commit is contained in:
Kai Labusch 2019-12-13 10:22:46 +01:00
parent bde4c29b0c
commit 7ebf04b517

View file

@ -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).