atom-html-preview
atom-html-preview copied to clipboard
can't change the height in preview window
in preview window the height is to low, I don't know to make it higher
in the file atom-html-preview-view.coffee, find this line: webview.setAttribute("sandbox", "allow-scripts allow-same-origin") then add this line after that one: webview.setAttribute("style", "height: 100%") Restart atom and it should be working now
Than you, but if change this config file, the atom-html-preview plugin will not work any more.
2016-06-22 4:06 GMT+08:00 Justin Rhude [email protected]:
in the file atom-html-preview-view.coffee, find this line: webview.setAttribute("sandbox", "allow-scripts allow-same-origin") then add this line after that one: webview.setAttribute("style", "height: 100%") Restart atom and it should be working now
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/webBoxio/atom-html-preview/issues/111#issuecomment-227555766, or mute the thread https://github.com/notifications/unsubscribe/AOcujsTcAmJn8AEPYVCoreFVk7mXYy9Pks5qOERYgaJpZM4I41z6 .
Hi there, is there anyway to set the preview window with a fixed width or height?
I edit the line webview.setAttribute("style", "height: 640px") webview.setAttribute("style", "width: 480px") Restart atom and find width-setting is working but height-setting is not.
Just update your atom and plugin, that will be okay!