DmitryBaranovskiy/raphael — Issue #501: setSize() scales after usages of setViewBox()
Author: enc
Created: 2012-01-21 17:11:02+00:00
State: open

strange behavior:
Paper.setSize() works great for resizing on window.resize until setViewBox() is used for zooming or panning. further change of size scales the content until the paper is recreated.

```
$(window).resize =>
@paper.setSize(@x, @y)
```

```
resize: ->
@paper.setViewBox(@ml,@mt, @x * @scale, @y * @scale)
```