def onWindowResized(self, width, height): if not self.resize_test: self.fail("onWindowResized called after WindowListener removed") return nh = Window.getClientHeight() nw = Window.getClientWidth() # TODO: we cannot assert the exact size, because, we have toolbars self.assertTrue(nw != self.w) self.assertTrue(nh != self.h) self.assertTrue(isinstance(nw, int)) self.assertTrue(isinstance(nh, int)) # put the window back to its original size # but make sure to switch off resize notify! self.resize_test = False Window.removeWindowResizeListener(self) Window.resize(self.w, self.h)
def onWindowResized(self, width, height): if not self.resize_test: self.fail("onWindowResized called after WindowListener removed") return nh = Window.getClientHeight() nw = Window.getClientWidth() # TODO: we cannot assert the exact size, because, we have toolbars self.assertTrue(nw!=self.w) self.assertTrue(nh!=self.h) self.assertTrue(isinstance(nw, int)) self.assertTrue(isinstance(nh, int)) # put the window back to its original size # but make sure to switch off resize notify! self.resize_test = False Window.removeWindowResizeListener(self) Window.resize(self.w, self.h)
def hideGlass(self): Window.removeWindowResizeListener(self) doc().body.removeChild(self.glass) Window.enableScrolling(True)
def hideGlass(self): Window.removeWindowResizeListener(self) doc().body.removeChild(self.getElement())