Skip to content

Commit

Permalink
#7204 WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
piorek committed May 18, 2018
1 parent 5e45c70 commit 101733b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/notebook/src/tree/Utils/DOMUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ export default class DOMUtils {
display:"block",
position:"absolute"
});
$('body').append(copyEl);
let fakeEl = $('<div>', { id: 'beakerx-tree' });
fakeEl.appendTo($('body'));
copyEl.appendTo(fakeEl);
let h = copyEl.outerHeight();
copyEl.remove();
fakeEl.remove();
return h;
}
}

0 comments on commit 101733b

Please sign in to comment.