~benji/juju-gui/1161000-fix-go-Next-arguments

« back to all changes in this revision

Viewing changes to app/views/topology/viewport.js

  • Committer: Jeff Pihach
  • Date: 2013-03-26 16:36:54 UTC
  • mfrom: (446.1.7 lock-zoom)
  • Revision ID: jeff.pihach@canonical.com-20130326163654-9c5qr2yirtnjxmz3
Modifications to enable mobile functionality.

Disabled native user pinch to zoom to lock viewport.
Reduced minimum viewport size for SVG for horizontal 7" mobile
  devices
Added touchstart events to service elements because they do
  not appear to bubble from svg events in Chrome for Android

R=bcsaller, rharding
CC=
https://codereview.appspot.com/7815047

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
      var topo = this.get('component');
91
91
      var zoomPlane = container.one('.zoom-plane');
92
92
      topo.fire('beforePageSizeRecalculation');
93
 
      var dimensions = utils.getEffectiveViewportSize(true, 800, 600);
 
93
      // This sets the minimum viewport size - y was reduced to 200 to render
 
94
      // properly on 7" tablets in horizontal view.
 
95
      var dimensions = utils.getEffectiveViewportSize(true, 800, 200);
94
96
      this.setAllTheDimensions(dimensions, canvas, svg, topo, zoomPlane);
95
97
      topo.fire('afterPageSizeRecalculation');
96
98
    }