public function setWidth(TcTable $table) {
        if (!$this->width) {
            $widths = [];
            foreach ($table->getColumns() as $key => $column) {
                $widths[$key] = $column['width'];
            }
            unset($widths[$this->columnIndex]);
            $this->width = $this->getRemainingColumnWidth($table, $widths);
        }
        $width = $this->width;
        $table->setColumnDefinition($this->columnIndex, 'width', $width);
    }
public function setWidth(TcTable $table) {
        if (!$this->width) {
            $widths = [];
            foreach ($table->getColumns() as $key => $column) {
                $widths[$key] = $column['width'];
            }
            unset($widths[$this->columnIndex]);
            $this->width = $this->getRemainingColumnWidth($table, $widths);
        }
        $width = $this->width;
        $table->setColumnDefinition($this->columnIndex, 'width', $width);
    }
public function setWidth ( TcTable $ table ) { if ( ! $ this -> width ) { $ widths = [ ] ; foreach ( $ table -> getColumns ( ) as $ key => $ column ) { $ widths [ $ key ] = $ column [ 'width' ] ; } unset ( $ widths [ $ this -> columnIndex ] ) ; $ this -> width = $ this -> getRemainingColumnWidth ( $ table , $ widths ) ; } $ width = $ this -> width ; $ table -> setColumnDefinition ( $ this -> columnIndex , 'width' , $ width ) ; }
Check the max width of the stretched column. This method is called just
before we start to add data rows

@param TcTable $table
@return void
Check the max width of the stretched column . This method is called just before we start to add data rows