summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/xwidget.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index 6ee4c672f6..c266cac46b 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -460,7 +460,9 @@ For example, use this to display an anchor."
(setq xwidget-webkit-last-session-buffer (switch-to-buffer
(get-buffer-create bufname)))
(insert " 'a' adjusts the xwidget size.")
- (setq xw (xwidget-insert 1 'webkit bufname 1000 1000))
+ (setq xw (xwidget-insert 1 'webkit bufname
+ (window-pixel-width)
+ (window-pixel-height)))
(xwidget-put xw 'callback 'xwidget-webkit-callback)
(xwidget-webkit-mode)
(xwidget-webkit-goto-uri (xwidget-webkit-last-session) url)))