Fix scrolling for calendars/addressbooks lists
This commit is contained in:
parent
e037ca0a49
commit
b088f6f97f
|
@ -110,7 +110,8 @@ DIV#contactFoldersList
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
overflow: hidden; }
|
overflow: auto;
|
||||||
|
overflow-x: hidden; }
|
||||||
|
|
||||||
DIV#abToolbar
|
DIV#abToolbar
|
||||||
{ padding-left: 6px; }
|
{ padding-left: 6px; }
|
||||||
|
|
|
@ -5,7 +5,8 @@ DIV#leftPanel
|
||||||
width: 19.25em;
|
width: 19.25em;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
background-color: #CCDDEC;
|
background-color: #CCDDEC;
|
||||||
overflow: hidden; }
|
overflow: auto;
|
||||||
|
overflow-x: hidden; }
|
||||||
|
|
||||||
DIV#schedulerTabs
|
DIV#schedulerTabs
|
||||||
{ position: absolute;
|
{ position: absolute;
|
||||||
|
@ -21,9 +22,6 @@ DIV#schedulerTabs .tab
|
||||||
{ left: 0px;
|
{ left: 0px;
|
||||||
right: 0px; }
|
right: 0px; }
|
||||||
|
|
||||||
DIV#calendarSelectorView
|
|
||||||
{ overflow: hidden; }
|
|
||||||
|
|
||||||
DIV#calendarSelectorButtons
|
DIV#calendarSelectorButtons
|
||||||
{ padding-left: 6px; }
|
{ padding-left: 6px; }
|
||||||
|
|
||||||
|
@ -44,8 +42,6 @@ UL#calendarList
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
list-style-image: none;
|
list-style-image: none;
|
||||||
overflow: hidden;
|
|
||||||
overflow-y: auto;
|
|
||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-khtml-user-select: none; }
|
-khtml-user-select: none; }
|
||||||
|
|
||||||
|
|
|
@ -3239,23 +3239,23 @@ function onWindowResize(event) {
|
||||||
handle.adjust();
|
handle.adjust();
|
||||||
|
|
||||||
if (!$(document.body).hasClassName("popup"))
|
if (!$(document.body).hasClassName("popup"))
|
||||||
drawNowLine ();
|
drawNowLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
function drawNowLine () {
|
function drawNowLine() {
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var hours = d.getHours();
|
var hours = d.getHours();
|
||||||
var minutes = d.getMinutes();
|
var minutes = d.getMinutes();
|
||||||
|
|
||||||
if (currentView == "dayview") {
|
if (currentView == "dayview") {
|
||||||
var today = new Date ();
|
var today = new Date();
|
||||||
var m = parseInt(today.getMonth ()) + 1;
|
var m = parseInt(today.getMonth()) + 1;
|
||||||
var d = today.getDate ();
|
var d = today.getDate();
|
||||||
if (m < 10)
|
if (m < 10)
|
||||||
m = "0" + m;
|
m = "0" + m;
|
||||||
if (d < 10)
|
if (d < 10)
|
||||||
d = "0" + d;
|
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
|
var targets = $$("DIV#daysView DIV.days DIV.day[day=" + day
|
||||||
+ "] DIV.clickableHourCell");
|
+ "] DIV.clickableHourCell");
|
||||||
}
|
}
|
||||||
|
@ -3268,12 +3268,12 @@ function drawNowLine () {
|
||||||
if (target) {
|
if (target) {
|
||||||
var div = $("nowLineDisplay");
|
var div = $("nowLineDisplay");
|
||||||
if (!div)
|
if (!div)
|
||||||
div = new Element ("div", {'id': 'nowLineDisplay'});
|
div = new Element("div", {'id': 'nowLineDisplay'});
|
||||||
|
|
||||||
div.style.top = parseInt (((minutes * target.offsetHeight) / 60) - 1) + "px";
|
div.style.top = parseInt(((minutes * target.offsetHeight) / 60) - 1) + "px";
|
||||||
target.appendChild (div);
|
target.appendChild(div);
|
||||||
|
|
||||||
setTimeout ("drawNowLine ();", 60000); // 1 min.
|
setTimeout("drawNowLine ();", 60000); // 1 min.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue