diff options
author | rekado <rekado@elephly.net> | 2016-09-20 21:54:11 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2016-09-20 22:11:47 +0200 |
commit | 2c91a145ce361d422f791539a765e48f45302683 (patch) | |
tree | 3e725025d99458e35723f1acd05cf2da4c95cf44 | |
parent | 51816d9c9cf940d1592a4f989ee4e9a90e96ad28 (diff) |
xwidgets: Initialize size to fill window.
-rw-r--r-- | lisp/xwidget.el | 4 |
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))) |