DescriptionSimplify bundle vis centering
It turns out that using a polygon centroid isn't quite what our eyes expected, and also caused a bug when elements were away from the center mass of services. Using the bounding box gives more expected results.
I didn't add a test, because I argued to myself that this was a visual thing, but I'm really lying to myself, and if you want to call me out on it, please feel free to appeal to my better self. :-)
To QA, look at a lot of bundles, like those from "hatch", "jorge", and "gary". Then also look at the problematic one, http://localhost:8888/sidebar/search/bundle/~makyo/mediawiki-scalable/5/mediawiki-scalable/ . Compare it with the rendering in trunk (like on comingsoon) to see the difference.
https://code.launchpad.net/~gary/juju-gui/bug1250547/+merge/194932
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Simplify bundle vis centering #
MessagesTotal messages: 3
|