vscode-nomnoml icon indicating copy to clipboard operation
vscode-nomnoml copied to clipboard

After update vscode to 1.4 scrollbars are gone again

Open Hunter21007 opened this issue 8 years ago • 1 comments

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>";

Hunter21007 avatar Aug 31 '16 09:08 Hunter21007

+1

neolectron avatar Oct 04 '16 18:10 neolectron