Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Change background according to screen resolution or size( width and height)

$
0
0

@anupamsinghbisht wrote:

Hi, I am using background image(drawing) in my diagram (http://jsfiddle.net/anupam_001/krjnb7kz/).
My requirement is to fit my background image to canvas as per screen resolution, and keep all the nodes at
same position respective to background.

I have tried 'fixedBounds' property along with dragComputation as mentioned in 'http://gojs.net/latest/samples/absolute.html'.

In above mentioned fiddle if you will try to resize result window and run code nodes will get repositioned.
How can I keep all nodes respective to background.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles