summaryrefslogtreecommitdiffstats
path: root/codebase/sources/ext/dhtmlxscheduler_monthheight.js
diff options
context:
space:
mode:
authorAlexKlimenkov <shurick.klimenkov@gmail.com>2014-06-10 20:50:30 +0300
committerAlexKlimenkov <shurick.klimenkov@gmail.com>2014-06-10 20:50:30 +0300
commitb5a0589955460a44c5428c4cb5429fcfce265d23 (patch)
tree87db58400a3e036de646fb630cbb358beeac3bc1 /codebase/sources/ext/dhtmlxscheduler_monthheight.js
parente2aaaef8540fabd0b5200a4959c269d6f1ae352e (diff)
downloadscheduler-b5a0589955460a44c5428c4cb5429fcfce265d23.zip
scheduler-b5a0589955460a44c5428c4cb5429fcfce265d23.tar.gz
scheduler-b5a0589955460a44c5428c4cb5429fcfce265d23.tar.bz2
[update] version 4.1.0
Diffstat (limited to 'codebase/sources/ext/dhtmlxscheduler_monthheight.js')
-rw-r--r--codebase/sources/ext/dhtmlxscheduler_monthheight.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/codebase/sources/ext/dhtmlxscheduler_monthheight.js b/codebase/sources/ext/dhtmlxscheduler_monthheight.js
new file mode 100644
index 0000000..ccf6611
--- /dev/null
+++ b/codebase/sources/ext/dhtmlxscheduler_monthheight.js
@@ -0,0 +1,34 @@
+/*
+dhtmlxScheduler v.4.1.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;
+ };
+
+}); \ No newline at end of file