()
| 423 | } |
| 424 | |
| 425 | func (wv *WebView) onResize() { |
| 426 | // FIXME: handle error? |
| 427 | wv.withWebBrowser2(func(webBrowser2 *win.IWebBrowser2) error { |
| 428 | bounds := wv.ClientBoundsPixels() |
| 429 | |
| 430 | webBrowser2.Put_Left(0) |
| 431 | webBrowser2.Put_Top(0) |
| 432 | webBrowser2.Put_Width(int32(bounds.Width)) |
| 433 | webBrowser2.Put_Height(int32(bounds.Height)) |
| 434 | |
| 435 | return nil |
| 436 | }) |
| 437 | } |
| 438 | |
| 439 | func (wv *WebView) withInPlaceActiveObject(f func(activeObject *win.IOleInPlaceActiveObject) error) error { |
| 440 | if wv.browserObject == nil { |
no test coverage detected