graphstream / gs-core

Graphstream core
http://graphstream-project.org/
Other
402 stars 109 forks source link

Viewer gets blanked when resizing. #342

Closed glurquiaga closed 4 years ago

glurquiaga commented 4 years ago

Hello. I have a Project with a graph viewer contained in an AnchorPane. When the AnchorPane is resized, the viewer gets blanked. If I click the mouse over the pane the graph appears again. How can I cause this automatically without having to click? Thanks in advanced.

hichbra commented 4 years ago

Check if you correctly refresh your view. If you build your own view, then you need to call ViewerPipe on a recurring basis as you can see in the examples.

glurquiaga commented 4 years ago

Finally I used a listener to anchorPane width and height property and when those change the display method of the view gets called. That solved it.