Fix scrolling for calendars/addressbooks lists

pull/7/head
Francis Lachapelle 2012-11-12 16:36:30 -05:00
parent e037ca0a49
commit b088f6f97f
3 changed files with 14 additions and 17 deletions

View File

@ -110,7 +110,8 @@ DIV#contactFoldersList
bottom: 0px;
margin: 0px;
padding: 0px;
overflow: hidden; }
overflow: auto;
overflow-x: hidden; }
DIV#abToolbar
{ padding-left: 6px; }

View File

@ -5,7 +5,8 @@ DIV#leftPanel
width: 19.25em;
bottom: 0px;
background-color: #CCDDEC;
overflow: hidden; }
overflow: auto;
overflow-x: hidden; }
DIV#schedulerTabs
{ position: absolute;
@ -21,9 +22,6 @@ DIV#schedulerTabs .tab
{ left: 0px;
right: 0px; }
DIV#calendarSelectorView
{ overflow: hidden; }
DIV#calendarSelectorButtons
{ padding-left: 6px; }
@ -44,8 +42,6 @@ UL#calendarList
padding: 0px;
list-style-type: none;
list-style-image: none;
overflow: hidden;
overflow-y: auto;
-moz-user-select: none;
-khtml-user-select: none; }

View File

@ -3239,23 +3239,23 @@ function onWindowResize(event) {
handle.adjust();
if (!$(document.body).hasClassName("popup"))
drawNowLine ();
drawNowLine();
}
function drawNowLine () {
function drawNowLine() {
var d = new Date();
var hours = d.getHours();
var minutes = d.getMinutes();
if (currentView == "dayview") {
var today = new Date ();
var m = parseInt(today.getMonth ()) + 1;
var d = today.getDate ();
var today = new Date();
var m = parseInt(today.getMonth()) + 1;
var d = today.getDate();
if (m < 10)
m = "0" + m;
if (d < 10)
d = "0" + d;
var day = today.getFullYear () + "" + m + "" + d;
var day = today.getFullYear() + "" + m + "" + d;
var targets = $$("DIV#daysView DIV.days DIV.day[day=" + day
+ "] DIV.clickableHourCell");
}
@ -3268,12 +3268,12 @@ function drawNowLine () {
if (target) {
var div = $("nowLineDisplay");
if (!div)
div = new Element ("div", {'id': 'nowLineDisplay'});
div = new Element("div", {'id': 'nowLineDisplay'});
div.style.top = parseInt (((minutes * target.offsetHeight) / 60) - 1) + "px";
target.appendChild (div);
div.style.top = parseInt(((minutes * target.offsetHeight) / 60) - 1) + "px";
target.appendChild(div);
setTimeout ("drawNowLine ();", 60000); // 1 min.
setTimeout("drawNowLine ();", 60000); // 1 min.
}
}
}