예제 #1
0
 /**
  * Splits the layout between the parts, by the specified percentage
  * @access private
  */
 function _split()
 {
     $split1 = 100 - $this->_percentage;
     $split2 = $this->_percentage;
     $this->_part1->_push(IMAGE_GRAPH_AREA_RIGHT, "$split1%");
     $this->_part2->_push(IMAGE_GRAPH_AREA_LEFT, "$split2%");
 }
예제 #2
0
 /**
  * Splits the layout between the parts, by the specified percentage
  *
  * @access private
  */
 function _split()
 {
     if ($this->_part1 && $this->_part2) {
         if ($this->_percentage !== false) {
             $split1 = 100 - $this->_percentage;
             $split2 = $this->_percentage;
             $this->_part1->_push('right', "{$split1}%");
             $this->_part2->_push('left', "{$split2}%");
         } else {
             $this->_part1->_push('right', 'auto_part1');
             $this->_part2->_push('left', 'auto_part2');
         }
     }
 }