Exemple #1
0
 public virtual void ResizeBrowser(IntPtr window)
 {
     if (_nativeHost != null)
     {
         var clientSize = _nativeHost.GetWindowClientSize();
         if (clientSize.Width > 0 && clientSize.Height > 0)
         {
             _nativeHost.ResizeBrowser(window, clientSize.Width, clientSize.Height);
         }
     }
 }
Exemple #2
0
 public virtual void ResizeBrowser(IntPtr window, int width, int height)
 {
     _nativeHost?.ResizeBrowser(window, width, height);
 }