Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview lags in lower part and right margin of the preview pane #635

Closed
holgerbrandl opened this issue Sep 20, 2018 · 2 comments
Closed

Comments

@holgerbrandl
Copy link

When scrolling in the fx-preview I constantly struggle with the preview not updating the lower part and right margin of the panel when scrolling around:

image
The upper left area is rendered correctly. But then there's a duplicated area (there was just one section about Draft) and there are visual artifacts at the right margin.

This is not a rare bug, but a permanent experience. It make the the preview very hard/tedious too use. It's also not a new problem but there since a while.

My preview settings are
image

Tested with v2.6 of the plugin in the latest 2018.2.4

@vsch
Copy link
Owner

vsch commented Sep 20, 2018

@holgerbrandl, this is an issue of the JavaFX WebView browser. It messes up its updates if the preview pane changes size. The component appears to have some optimization that causes the old view size to be updated and fail to consistently update the new region(s).

The only way to reset it is to close the file tab and re-open it. I try not to change the preview pane with WebView browser.

Does closing the file and re-opening it reset the updates for you?

@holgerbrandl
Copy link
Author

Thanks for suggesting the workaround, which works great so far. It seems obvious to to do in retrospect, but it somehow did not cross my mind in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants