From 2c91a145ce361d422f791539a765e48f45302683 Mon Sep 17 00:00:00 2001 From: rekado Date: Tue, 20 Sep 2016 21:54:11 +0200 Subject: xwidgets: Initialize size to fill window. --- lisp/xwidget.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))) -- cgit v1.2.3