bugfix
This commit is contained in:
parent
c3ef3a99b3
commit
ef5c160c40
@ -77,6 +77,8 @@ class ModalBehavior(object):
|
|||||||
self.pos = x, y
|
self.pos = x, y
|
||||||
else:
|
else:
|
||||||
self.pos = self._target.pos[0] + x, self._target.pos[1] + y
|
self.pos = self._target.pos[0] + x, self._target.pos[1] + y
|
||||||
|
Mx, My = Window.width, Window.height
|
||||||
|
self.pos_hint = {'x':x/Mx, 'y':y/My}
|
||||||
print("modal",self._target.size, self.anchor, self.pos, self.size, self.size_hint)
|
print("modal",self._target.size, self.anchor, self.pos, self.size, self.size_hint)
|
||||||
|
|
||||||
def open(self):
|
def open(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user