minor browser-ui.js fix (comment, s/var/let/)

This commit is contained in:
Gavin Sharp 2009-01-13 17:04:36 -05:00
Родитель 7bc2dcd49f
Коммит 7f1ab29901
1 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -231,21 +231,20 @@ var BrowserUI = {
},
_sizeControls : function(aEvent) {
if (window != aEvent.target) {
if (window != aEvent.target)
return
}
var toolbarH = document.getElementById("toolbar-main").boxObject.height;
var popup = document.getElementById("popup_autocomplete");
var windowW = window.innerWidth;
var windowH = window.innerHeight
let toolbarH = document.getElementById("toolbar-main").boxObject.height;
let popup = document.getElementById("popup_autocomplete");
let windowW = window.innerWidth;
let windowH = window.innerHeight
popup.height = windowH - toolbarH;
popup.width = windowW
document.getElementById("notifications").width = windowW;
document.getElementById("browser-controls").height = windowH - toolbarH;
// XXX need to handle make some of these work again
// XXX need to make some of these work again
/*
var sidebar = document.getElementById("browser-controls");
var panelUI = document.getElementById("panel-container");