|
|
@ -436,9 +436,9 @@ class Overlay:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return value
|
|
|
|
return value
|
|
|
|
|
|
|
|
|
|
|
|
ho = new_cords[0] if new_cords and self.horizontal_offset is None else self.horizontal_offset
|
|
|
|
ho = int(new_cords[0]) if new_cords and self.horizontal_offset is None else self.horizontal_offset
|
|
|
|
ha = new_cords[1] if new_cords and self.horizontal_align is None else self.horizontal_align
|
|
|
|
ha = new_cords[1] if new_cords and self.horizontal_align is None else self.horizontal_align
|
|
|
|
vo = new_cords[2] if new_cords and self.vertical_offset is None else self.vertical_offset
|
|
|
|
vo = int(new_cords[2]) if new_cords and self.vertical_offset is None else self.vertical_offset
|
|
|
|
va = new_cords[3] if new_cords and self.vertical_align is None else self.vertical_align
|
|
|
|
va = new_cords[3] if new_cords and self.vertical_align is None else self.vertical_align
|
|
|
|
|
|
|
|
|
|
|
|
return get_cord(ho, canvas_box[0], box[0], ha), get_cord(vo, canvas_box[1], box[1], va)
|
|
|
|
return get_cord(ho, canvas_box[0], box[0], ha), get_cord(vo, canvas_box[1], box[1], va)
|
|
|
|