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:
parent
bde4c29b0c
commit
7ebf04b517
1 changed files with 7 additions and 1 deletions
8
neath.js
8
neath.js
|
@ -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…
Add table
Add a link
Reference in a new issue