blob: 50c2812cc4ec7986c9bba5cbb6a4c4f72d936c6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
dhtmlxScheduler v.4.3.0 Stardard
This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
scheduler.attachEvent("onTemplatesReady",function(){
scheduler.xy.scroll_width = 0;
var old = scheduler.render_view_data;
scheduler.render_view_data=function(){
var data = this._els["dhx_cal_data"][0];
data.firstChild._h_fix = true;
old.apply(scheduler,arguments);
var height = parseInt(data.style.height);
data.style.height="1px";
data.style.height=data.scrollHeight+"px";
this._obj.style.height = this._obj.clientHeight + data.scrollHeight - height + "px";
};
var old_s=scheduler._reset_month_scale;
scheduler._reset_month_scale=function(a,b,c){
var dummy = {clientHeight:100};
old_s.apply(scheduler,[dummy,b,c]);
a.innerHTML = dummy.innerHTML;
};
});
|