Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(298)

Issue 9162048: Position new services more intelligently.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by matthew.scott
Modified:
11 years, 1 month ago
Reviewers:
benji, gary.poster, mp+163386
Visibility:
Public.

Description

Position new services more intelligently. New services are positioned more intelligently than by just running the pack layout on them by padding them beside the existing services. They are currently only padded to the right because a) the topology always starts at (0, 0) and anything to the left might be hidden and b) monitor screens are generally wider than they are tall and there's a higher chance of the new service being on the screen in that case. A future branch will center the viewport on the new service intelligently with the charm browser. https://code.launchpad.net/~makyo/juju-gui/new-svc-placement/+merge/163386 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 16

Patch Set 2 : Position new services more intelligently. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -3 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/modules-debug.js View 1 1 chunk +3 lines, -0 lines 0 comments Download
M app/views/topology/service.js View 1 1 chunk +19 lines, -1 line 0 comments Download
M app/views/topology/topology.js View 1 4 chunks +24 lines, -2 lines 0 comments Download
A app/views/topology/utils.js View 1 1 chunk +86 lines, -0 lines 0 comments Download
M test/index.html View 1 chunk +1 line, -0 lines 0 comments Download
A test/test_topology_utils.js View 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 6
matthew.scott
Please take a look.
11 years, 1 month ago (2013-05-10 23:55:16 UTC) #1
gary.poster
LGTM. Thank you! Gary https://codereview.appspot.com/9162048/diff/1/app/config-debug.js File app/config-debug.js (right): https://codereview.appspot.com/9162048/diff/1/app/config-debug.js#newcode29 app/config-debug.js:29: simulateEvents: false, I think I ...
11 years, 1 month ago (2013-05-11 03:04:06 UTC) #2
benji
Looks good. Thanks. LGTM-ly, y'rs https://codereview.appspot.com/9162048/diff/1/app/config-debug.js File app/config-debug.js (right): https://codereview.appspot.com/9162048/diff/1/app/config-debug.js#newcode29 app/config-debug.js:29: simulateEvents: false, On 2013/05/11 ...
11 years, 1 month ago (2013-05-11 13:52:55 UTC) #3
matthew.scott
Thanks for the reviews! https://codereview.appspot.com/9162048/diff/1/app/config-debug.js File app/config-debug.js (right): https://codereview.appspot.com/9162048/diff/1/app/config-debug.js#newcode29 app/config-debug.js:29: simulateEvents: false, On 2013/05/11 03:04:06, ...
11 years, 1 month ago (2013-05-14 14:46:05 UTC) #4
matthew.scott
https://codereview.appspot.com/9162048/diff/1/app/config-debug.js File app/config-debug.js (right): https://codereview.appspot.com/9162048/diff/1/app/config-debug.js#newcode29 app/config-debug.js:29: simulateEvents: false, On 2013/05/14 14:46:05, matthew.scott wrote: > On ...
11 years, 1 month ago (2013-05-14 15:04:14 UTC) #5
matthew.scott
11 years, 1 month ago (2013-05-14 15:23:11 UTC) #6
*** Submitted:

Position new services more intelligently.

New services are positioned more intelligently than by just running the pack
layout on them by padding them beside the existing services.  They are currently
only padded to the right because a) the topology always starts at (0, 0) and
anything to the left might be hidden and b) monitor screens are generally wider
than they are tall and there's a higher chance of the new service being on the
screen in that case.  A future branch will center the viewport on the new
service intelligently with the charm browser.

R=gary.poster, benji
CC=
https://codereview.appspot.com/9162048
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b