graphviz-preview icon indicating copy to clipboard operation
graphviz-preview copied to clipboard

preview pane split to two parts, can not see whole preview pics.

Open hwcs opened this issue 9 years ago • 13 comments

image

When I opened the preview pane, it had been split to two pars shown above, how can I get rid of the one below?

hwcs avatar Aug 17 '16 09:08 hwcs

Confirmed on Atom 1.9.8 on Windows with graphviz-preview 1.7.0. I can temporarily get full height by adding height: 100% to the webview element, but since it is reconstructed with each save, this is not a great solution.

superlou avatar Aug 17 '16 20:08 superlou

How to “adding height: 100% to the webview element”?

hwcs avatar Aug 18 '16 00:08 hwcs

I am using windows7, and I have three version of Atom, 1.8.0 have no problem, 1.9.7 and 1.9.8 have the problem described above.

hwcs avatar Aug 18 '16 06:08 hwcs

I'm on OS X 10.11.6, and have this problem in Atom 1.9.8 too. Earlier versions of Atom (can't remember which) didn't have the issue.

erkaun avatar Aug 18 '16 14:08 erkaun

One can patch this locally by adding this to one's local stylesheet:

.graphviz-preview > webview {
  height: 100%;
}

dlmanning avatar Aug 18 '16 22:08 dlmanning

Confirmed on Ubuntu 16.04 running i3 as well.

lillem4n avatar Aug 27 '16 16:08 lillem4n

Confirmed on Mac OS X 10.11.6 as well.

Atry avatar Sep 10 '16 18:09 Atry

confirmed the issue even on Fedora 24 with atom 1.11.2

GabVenturato avatar Nov 17 '16 23:11 GabVenturato

@GabVenturato if you need to edit/ preview graphviz, try the graphviz-preview-plus atom package if you haven't already.

I wrote that as an alternative to graphviz-preview - which doesn't seem to be maintained anymore.

sverweij avatar Nov 18 '16 07:11 sverweij

@sverweij - thank you very much for hint - works like a charm!

f8ttyc8t avatar Nov 18 '16 08:11 f8ttyc8t

@sverweij thank you very much, it seems excellent!

GabVenturato avatar Nov 19 '16 13:11 GabVenturato

Change $HOME/.atom/packages/graphviz-preview/styles/graphviz-preview.less to

  iframe, webview {
    width: 100%;
    height: 100%;
    border: 0;
  }

perilbrain avatar Dec 30 '16 10:12 perilbrain

@perilbrain - thank your for dropping that hint!

f8ttyc8t avatar Jan 01 '17 10:01 f8ttyc8t