SWI-Prolog/swish

scroll required to see whole SVG graphics

Closed this issue · 5 comments

SWISH now shows only part of SVG graphics, one needs to scroll to see the whole image
see

image

The problem seems to be due to the fact that the runner pane is not scrolled after the answer is rendered. The scroll happens only when the query is submitted and to print the abort message, no scroll is performed after the answer is shown (see runner.js)

I thought it was related to the SVG itself, but it seems not. Just asking ?- length(L, 200). show the same problem. Not sure what you mean though. Answers call setState and this does the scroll. At least,
that is how it is intended. If you see the real issue, please explain or send a pull-request ....

I fiddled a little bit with runner.js and I noticed that scrollToBottom is not called to render the answer. i will try to have a look but I am not very good at js

The problem is that aliveState(state) for the true state returns false, so a branch is entered in setState where scrollToBottom is not called. I will make a pull request

Fixed by you :) closing.