MCPcopy
hub / github.com/lxn/walk / onResize

Method onResize

webview.go:425–437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423}
424
425func (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
439func (wv *WebView) withInPlaceActiveObject(f func(activeObject *win.IOleInPlaceActiveObject) error) error {
440 if wv.browserObject == nil {

Callers 2

NewWebViewFunction · 0.95
WndProcMethod · 0.95

Calls 2

withWebBrowser2Method · 0.95
ClientBoundsPixelsMethod · 0.65

Tested by

no test coverage detected