File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -351,9 +351,10 @@ def anchored_position(self):
351
351
"""Position relative to the anchor_point. Tuple containing x,y
352
352
pixel coordinates."""
353
353
return (
354
- int (self .x + self ._anchor_point [0 ] * self ._boundingbox [2 ]),
355
- int (self .y + self ._anchor_point [1 ] * self ._boundingbox [3 ]),
356
- )
354
+ int (self .x + self ._anchor_point [0 ] * self ._boundingbox [2 ] * self ._scale ),
355
+ int (self .y + self ._anchor_point [1 ] * self ._boundingbox [3 ] * self ._scale
356
+ - (self ._boundingbox [3 ] * self ._scale )/ 2 )
357
+ )
357
358
358
359
@anchored_position .setter
359
360
def anchored_position (self , new_position ):
@@ -364,6 +365,7 @@ def anchored_position(self, new_position):
364
365
new_y = self .y = int (
365
366
new_position [1 ]
366
367
- self ._anchor_point [1 ] * (self ._boundingbox [3 ] * self ._scale )
368
+ + (self ._boundingbox [3 ] * self ._scale )/ 2
367
369
)
368
370
self ._boundingbox = (new_x , new_y , self ._boundingbox [2 ], self ._boundingbox [3 ])
369
371
self .x = new_x
You can’t perform that action at this time.
0 commit comments