From 7a2c563683c3ad3afb37ea63dca04909c08c2024 Mon Sep 17 00:00:00 2001 From: John Foerch Date: Thu, 30 Aug 2012 13:41:37 -0400 Subject: [PATCH] point: buffer-outer-container overflow:hidden, buffer-container manually sized This allows the xul:browser elements to be sized properly when point overflows the viewport. --- content/conkeror.xul | 2 +- modules/window.js | 8 ++++++++ style/default/buffer--point.css | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/content/conkeror.xul b/content/conkeror.xul index 0be54ce..faf2038 100644 --- a/content/conkeror.xul +++ b/content/conkeror.xul @@ -49,7 +49,7 @@ COPYING file. onpopuphiding="conkeror.formfill_mode(false, this);"/> - + diff --git a/modules/window.js b/modules/window.js index 74d12cd..5eac25d 100644 --- a/modules/window.js +++ b/modules/window.js @@ -174,6 +174,14 @@ function window_initialize (window) { tag = window.args.tag; window.tag = generate_new_window_tag(tag); + var stack = window.document.getElementById("buffer-outer-container"); + var deck = window.document.getElementById("buffer-container"); + window.addEventListener("resize", + function (e) { + deck.style.height = stack.clientHeight + "px"; + deck.style.width = stack.clientWidth + "px"; + }, true); + window.point = window.document.getElementById("point"); // Add a getBrowser() function to help certain extensions designed diff --git a/style/default/buffer--point.css b/style/default/buffer--point.css index 8acb2db..c9d49d7 100644 --- a/style/default/buffer--point.css +++ b/style/default/buffer--point.css @@ -1,6 +1,10 @@ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); +#buffer-outer-container { + overflow: hidden; +} + #point { width: 30px; height: 30px; -- 2.11.4.GIT