Skip to content

Commit 8d81bb8

Browse files
committed
Fix display for canvas
If not set to "block", we get a 5px gap at the bottom. Ref https://stackoverflow.com/questions/15807833/div-containing-canvas-have-got-a-strange-bottom-margin-of-5px
1 parent a4e24c3 commit 8d81bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/_base/Renderable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class RenderableView extends widgets.DOMWidgetView {
423423
this.$renderer = $(this.renderer.domElement);
424424
this.$el.empty().append(this.$renderer);
425425

426-
this.$el.css('margin-bottom', '-5px');
426+
this.$el.css('display', 'block');
427427

428428
this.updateSize();
429429

0 commit comments

Comments
 (0)