vscode-nomnoml
vscode-nomnoml copied to clipboard
After update vscode to 1.4 scrollbars are gone again
I have chaged the html to fix this by removing width and height from body and div
return "<html> \
<body style=\"margin: 0px; \"> \
<div style=\"\">" + svg + "</div> \
<script> \
var svg = document.getElementsByTagName( 'svg' )[ 0 ]; \
var boundingBox = svg.getBBox( ); \
var width = boundingBox.width + 20; \
var height = boundingBox.height + 20; \
svg.style['min-width'] = width + 'px'; \
svg.style['min-height'] = height + 'px'; \
" + (backgroundColor != undefined ? "svg.style['background-color'] = '" + backgroundColor + "';" : '//no background color specified.') + " \
</script> \
</body> \
</html>";
+1