diff --git a/core/css.js b/core/css.js index a4d766c36..31c880aaf 100644 --- a/core/css.js +++ b/core/css.js @@ -143,10 +143,15 @@ Blockly.Css.CONTENT = [ '.blocklyWsDragSurface {', 'display: none;', 'position: absolute;', - 'overflow: visible;', 'top: 0;', 'left: 0;', '}', + /* Added as a separate rule with multiple classes to make it more specific + than a bootstrap rule that selects svg:root. See issue #1275 for context. + */ + '.blocklyWsDragSurface.blocklyOverflowVisible {', + 'overflow: visible;', + '}', '.blocklyBlockDragSurface {', 'display: none;', diff --git a/core/workspace_drag_surface_svg.js b/core/workspace_drag_surface_svg.js index d642a1686..4bf932a45 100644 --- a/core/workspace_drag_surface_svg.js +++ b/core/workspace_drag_surface_svg.js @@ -93,7 +93,7 @@ Blockly.WorkspaceDragSurfaceSvg.prototype.createDom = function() { 'xmlns:html': Blockly.HTML_NS, 'xmlns:xlink': 'http://www.w3.org/1999/xlink', 'version': '1.1', - 'class': 'blocklyWsDragSurface' + 'class': 'blocklyWsDragSurface blocklyOverflowVisible', }, null); this.container_.appendChild(this.SVG_); };