code: function( treeWidth, treeHeight ) {
              var viewWidth = (treeWidth < this.drawArea.clientWidth) ? this.drawArea.clientWidth : treeWidth + this.CONFIG.padding*2,
                  viewHeight = (treeHeight < this.drawArea.clientHeight) ? this.drawArea.clientHeight : treeHeight + this.CONFIG.padding*2;
  
              this._R.setSize( viewWidth, viewHeight );
  
              if ( this.CONFIG.scrollbar === 'resize') {
                  UTIL.setDimensions( this.drawArea, viewWidth, viewHeight );
              }
              else if ( !UTIL.isjQueryAvailable() || this.CONFIG.scrollbar === 'native' ) {
  
                  if ( this.drawArea.clientWidth < treeWidth ) { // is overflow-x necessary
                      this.drawArea.style.overflowX = "auto";
                  }
  
                  if ( this.drawArea.clientHeight < treeHeight ) { // is overflow-y necessary
                      this.drawArea.style.overflowY = "auto";
                  }
              }
              // Fancy scrollbar relies heavily on jQuery, so guarding with if ( $ )
              else if ( this.CONFIG.scrollbar === 'fancy') {
                  var jq_drawArea = $( this.drawArea );
                  if (jq_drawArea.hasClass('ps-container')) { // znaci da je 'fancy' vec inicijaliziran, treba updateat
                      jq_drawArea.find('.Treant').css({
                          width: viewWidth,
                          height: viewHeight
                      });
  
                      jq_drawArea.perfectScrollbar('update');
                  }
                  else {
                      var mainContainer = jq_drawArea.wrapInner('<div class="Treant"/>'),
                          child = mainContainer.find('.Treant');
  
                      child.css({
                          width: viewWidth,
                          height: viewHeight
                      });
  
                      mainContainer.perfectScrollbar();
                  }
              } // else this.CONFIG.scrollbar == 'None'
  
              return this;
          }
docs: Create Raphael instance, (optionally set scroll bars if necessary)
  @param {number} treeWidth
  @param {number} treeHeight
  @returns {Tree}