This commit is contained in:
yumoqing 2022-11-26 14:59:20 +08:00
parent c3ef3a99b3
commit ef5c160c40

View File

@ -77,6 +77,8 @@ class ModalBehavior(object):
self.pos = x, y
else:
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)
def open(self):