Merge lp:~makyo/juju-gui/ff-annotations-1192596 into lp:juju-gui/experimental
Proposed by
Madison Scott-Clary
Status: | Merged |
---|---|
Merged at revision: | 747 |
Proposed branch: | lp:~makyo/juju-gui/ff-annotations-1192596 |
Merge into: | lp:juju-gui/experimental |
Diff against target: |
19 lines (+8/-1) 1 file modified
app/views/charm-panel.js (+8/-1) |
To merge this branch: | bzr merge lp:~makyo/juju-gui/ff-annotations-1192596 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+170640@code.launchpad.net |
Description of the change
Fix drag problems on service creation
This bug affected FF and Chrome, causing relation lines to be mis-aligned and services to jump when dragged. I believe it was due to lingering attributes on the service boxes after creation. To QA, add MySQL and Wordpress, relate them, then drag them around a bunch. The relation line should follow the service blocks, and the service blocks shouldn't jump to any position when you start to drag them.
To post a comment you must log in.
Reviewers: mp+170640_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix drag problems on service creation
This bug affected FF and Chrome, causing relation lines to be
mis-aligned and services to jump when dragged. I believe it was due to
lingering attributes on the service boxes after creation. To QA, add
MySQL and Wordpress, relate them, then drag them around a bunch. The
relation line should follow the service blocks, and the service blocks
shouldn't jump to any position when you start to drag them.
https:/ /code.launchpad .net/~makyo/ juju-gui/ ff-annotations- 1192596/ +merge/ 170640
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/10309044/
Affected files: charm-panel. js
A [revision details]
M app/views/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision:
<email address hidden>
+New revision: <email address hidden>
Index: app/views/ charm-panel. js charm-panel. js' charm-panel. js 2013-06-13 22:04:30 +0000 charm-panel. js 2013-06-20 14:38:57 +0000
env.update_ annotations(
serviceNam e, 'service',
{ 'gui-x': ghostService. get('x' ), get('y' ) }); get('y' ) }, removeAttr( 'x'); removeAttr( 'y');
}
/ / Update the ghost service to match the configuration.
ghostServ ice.setAttrs( {
=== modified file 'app/views/
--- app/views/
+++ app/views/
@@ -643,7 +643,14 @@
- 'gui-y': ghostService.
+ 'gui-y': ghostService.
+ function() {
+ // The x/y attributes need to be removed to
prevent
+ // lingering position problems after the service
is
+ // positioned by the update code.
+ ghostService.
+ ghostService.
+ });