[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/6] Let initial WebKit view fill window
From: |
Ricardo Wurmus |
Subject: |
[PATCH 5/6] Let initial WebKit view fill window |
Date: |
Wed, 21 Sep 2016 13:50:17 +0200 |
* lisp/xwidget.el (xwidget-webkit-new-session): Change default size of
WebKit widget to window size.
---
lisp/xwidget.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index 6ee4c67..c266cac 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)))
--
2.10.0
- [PATCH 0/6] xwidget webkit: Use WebKit2 API., Ricardo Wurmus, 2016/09/21
- [PATCH 1/6] xwidget: Use WebKit2 API, Ricardo Wurmus, 2016/09/21
- [PATCH 2/6] Remove scrolled window container around WebKit widget, Ricardo Wurmus, 2016/09/21
- [PATCH 3/6] Implement zoom for WebKit widget, Ricardo Wurmus, 2016/09/21
- [PATCH 4/6] xwidget: Bind "beginning-of-buffer" and "end-of-buffer", Ricardo Wurmus, 2016/09/21
- [PATCH 5/6] Let initial WebKit view fill window,
Ricardo Wurmus <=
- [PATCH 6/6] xwidget: Map "previous-line" and "next-line" to scroll, Ricardo Wurmus, 2016/09/21
- Re: [PATCH 0/6] xwidget webkit: Use WebKit2 API., joakim, 2016/09/21
- Re: [PATCH 0/6] xwidget webkit: Use WebKit2 API., Eli Zaretskii, 2016/09/21