gbairaktaris / diy-layout-creator

Automatically exported from code.google.com/p/diy-layout-creator
0 stars 0 forks source link

Renumbering components inconsistent #91

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In some cases renumbering yields inconsistent results, see attached file.

This holds for both x and y axis first renumbering. Seems like it doesn't care 
about the other axis.

Original issue reported on code.google.com by per.tre...@gmail.com on 29 Aug 2011 at 4:32

Attachments:

GoogleCodeExporter commented 8 years ago
it uses top left corner of the smallest rectangle that contains the component 
when numbering. That means that if one component is a pixel left or right it 
can impact the numbering. I'll change the logic to use some internal point 
rather than top left corner

Original comment by bancika@gmail.com on 29 Aug 2011 at 4:48

GoogleCodeExporter commented 8 years ago
this should be taken care of. I changed the logic to use the center of weight 
of each component instead of the top left corner.

Original comment by bancika@gmail.com on 26 Feb 2012 at 8:42