atom-html-preview icon indicating copy to clipboard operation
atom-html-preview copied to clipboard

can't change the height in preview window

Open chinqi opened this issue 8 years ago • 4 comments

in preview window the height is to low, I don't know to make it higher aa

chinqi avatar Jun 18 '16 01:06 chinqi

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

JRud52 avatar Jun 21 '16 20:06 JRud52

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 .

chinqi avatar Jun 28 '16 13:06 chinqi

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.

wildish avatar Aug 19 '16 08:08 wildish

Just update your atom and plugin, that will be okay!

chinqi avatar Aug 21 '16 08:08 chinqi