Skip to content

Commit

Permalink
fix: pos str
Browse files Browse the repository at this point in the history
(cherry picked from commit e4cc3306fee26cdc1d35672c403c3ae29ed54d48)
  • Loading branch information
yimelia committed Jul 29, 2021
1 parent 3c58355 commit 88f0053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poco/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def get_position(self, focus=None):

focus = focus or self._focus or 'anchor'
if focus == 'anchor':
pos = self.attr('pos')
pos = list(map(float, self.attr('pos')))
elif focus == 'center':
x, y = map(float, self.attr('pos'))
w, h = self.get_size()
Expand Down

0 comments on commit 88f0053

Please sign in to comment.