~ya-bo-ng/juju-gui/bottom-bar-removed

Viewing all changes in revision 1143.

  • Committer: Matthew Scott
  • Date: 2013-10-17 20:29:30 UTC
  • mfrom: (1137.3.2 center)
  • Revision ID: matthew.scott@canonical.com-20131017202930-f9ulwdtzuvbemoyt
Fix initial centering of canvas in real env.

In a real environment with positioned services, this centers the services within the viewport, an artifact that was lost in a recent refactor.  Also tests that the panToPoint event was fired when a positioned service is added (future designs will complicate this, as the inspector will have an arrow pointing to a service, if it's open; this will be prevented in app/views/topology/service.js:panToCenter() once that's implemented).  Other tests in place already test finding and setting the centroid.

R=
CC=
https://codereview.appspot.com/14771044

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: