Skip to content

Commit a916035

Browse files
authored
Merge pull request #2688 from jasongrout/jitter
Fix jitter caused by rounding height.
2 parents 937d06f + b04db89 commit a916035

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebook/static/notebook/js/outputarea.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,8 @@ define([
966966
// Fix the output div's height if the clear_output is waiting for
967967
// new output (it is being used in an animation).
968968
if (!ignore_clear_queue && this.clear_queued) {
969-
var height = this.element.height();
969+
// this.element.height() rounds the height, so we get the exact value
970+
var height = this.element[0].getBoundingClientRect().height;
970971
this.element.height(height);
971972
this.clear_queued = false;
972973
}

0 commit comments

Comments
 (0)