Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def OnSize(self, event):
cefpython.WindowUtils.OnSize(self.GetHandleForBrowser(), 0, 0, 0)
def OnSize(self, event):
cefpython.WindowUtils.OnSize(self.GetHandleForBrowser(), 0, 0, 0)
def on_size(self, event):
if not self.browser or self.hidden:
return
if platform.system() == "Windows":
cef.WindowUtils.OnSize(self.Handle, 0, 0, 0)
else:
(x, y) = (0, 0)
(width, height) = event.GetSize()
self.browser.SetBounds(x, y, width, height)
self.browser.NotifyMoveOrResizeStarted()
def on_size(self, event):
"""OS_WIN only. Handle the the size event"""
cefpython.WindowUtils.OnSize(self.GetHandle(), 0, 0, 0)
event.Skip()
def OnSize(self, widget, sizeAlloc):
cefpython.WindowUtils.OnSize(self.container.get_window().handle, 0, 0, 0)
def OnSize(self, _):
if not self.browser:
return
if WINDOWS:
cef.WindowUtils.OnSize(self.browser_panel.GetHandle(),
0, 0, 0)
elif LINUX:
(x, y) = (0, 0)
(width, height) = self.browser_panel.GetSize().Get()
self.browser.SetBounds(x, y, width, height)
self.browser.NotifyMoveOrResizeStarted()
def OnSize(self, _):
if not self.browser:
return
if WINDOWS:
cef.WindowUtils.OnSize(self.browser_panel.GetHandle(),
0, 0, 0)
elif LINUX:
(x, y) = (0, 0)
(width, height) = self.browser_panel.GetSize().Get()
self.browser.SetBounds(x, y, width, height)
self.sw.get_window().move_resize(x,y,width,height)
self.browser.NotifyMoveOrResizeStarted()