/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

Viewing changes to js/virtual.js

  • Committer: Suren A. Chilingaryan
  • Date: 2010-08-04 06:30:21 UTC
  • Revision ID: csa@dside.dyndns.org-20100804063021-shdx01q2pg5r3a1k
Initial commit of gestures support for iDevices by Toni Pirhonen, Fix IE support broken by revision r196

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function VIRTUAL(id, control) {
 
1
function VIRTUAL(id, control, geometry_node) {
2
2
    this.node = document.getElementById(id);
3
3
    this.control = control;
4
4
 
 
5
    this.controls_node = geometry_node;
 
6
 
5
7
    this.srctree=new dhtmlXTreeObject(id,"100%","100%",0, false);
6
8
    if (adei.cfg.dhtmlx_iconset) {
7
9
        this.srctree.setImagePath(adei.cfg.dhtmlx_iconset);
10
12
    this.srctree.setDataMode("xml");
11
13
    this.srctree.enableCheckBoxes(1);
12
14
    this.srctree.enableThreeStateCheckboxes(true);
13
 
    this.srctree.setOnSelectStateChange(this.UpdateTreeGeometry);
14
15
}
15
16
 
16
17
VIRTUAL.prototype.UpdateTreeGeometry = function() {
17
 
    var s = domGetNodeSize(document.getElementById('module_controls_all'));
18
 
    domSetHeight(document.getElementById('virtual_div'),s[1] - parseInt(domGetStyleProp(document.getElementById('module_controls_virtual'),null,'margin-top')));
 
18
    var s = domGetNodeSize(this.controls_node);
 
19
    if (s[1] > 0) domSetHeight(this.node, s[1], true, this.controls_node, s[1], true);
19
20
}
20
21
 
21
22
VIRTUAL.prototype.AttachConfig = function(config) {