johnfn / Illumination

2 stars 0 forks source link

Fix component positioning in panels #6

Closed dwu4 closed 14 years ago

dwu4 commented 14 years ago

Components offset each time they or their container is added to a panel - should be modified so that position stays the same regardless of how many times they or their containers are added

hhcho commented 14 years ago

Fixed by adding "Origin" field to Component.cs. It is an absolute origin from which the relative bounding box is defined. When updating, this field is taken into account to calculate the correct position.