almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

[Network] Full Screen #1130

Closed andrea-bologna closed 9 years ago

andrea-bologna commented 9 years ago

How can I have a button to redraw a network in full screen mode?

AlexDM0 commented 9 years ago

Hi,

You make a button, and on click do the redraw method.

Regards

andrea-bologna commented 9 years ago

I did some attempts, but when I resize the container div, the graph is plotted only on the top left corner and not resized to fill the screen

AlexDM0 commented 9 years ago

What version are you using?

We do plan to change the behaviour of the increase of the window. The current behaviour is just increasing the workspace, not scaling the graph. You can do this yourself if you want using the moveTo method or the fit method.

Regards

AlexDM0 commented 9 years ago

also see #915

abcbaby commented 9 years ago

I integrated http://sindresorhus.com/screenfull.js/ with Vis.js Network, seems to work pretty well.

AlexDM0 commented 9 years ago

I see, if that was what you ment then @dragonzone has answered the issue correctly. If not, please let me know so we can reopen this issue.

Thanks dragon!