[REM] Remove unsused code, no need to set heigth manually.
authorsma (Tiny) <sma@tinyerp.com>
Wed, 6 Jul 2011 06:34:57 +0000 (12:04 +0530)
committersma (Tiny) <sma@tinyerp.com>
Wed, 6 Jul 2011 06:34:57 +0000 (12:04 +0530)
bzr revid: sma@tinyerp.com-20110706063457-h3szv3akaax03ct1

addons/base_gantt/static/src/js/gantt.js

index c088d3b..780ed8d 100644 (file)
@@ -314,23 +314,6 @@ init: function(view_manager, session, element_id, dataset, view_id) {
         jQuery("div #_1, div #_1 + div").hide();
     },
 
-    set_heigth: function() {
-
-        gantt_hgt = jQuery(window).height() - oth_hgt;
-        
-        if (gantt_hgt < min_hgt){
-            gantt_hgt = min_hgt;
-        }
-        jQuery('#GanttDiv').css('height','100%');
-        jQuery('.task-name').height(gantt_hgt - 40 -16);
-        taskdiv.height(gantt_hgt - 40);
-
-        if (taskdiv.height() > jQuery('.taskPanel').height() + 16){
-            jQuery('.taskPanel').height(taskdiv.height() - 16);
-            jQuery('.task-name').children().height(taskdiv.height() - 16);
-        }
-    },
-
     set_width: function() {
 
         $gantt_panel.width(1);