Hola!
Tengo el siguiente problema en yii
Tengo una tabla de gridview en la cual puedo modificar el ancho de las columnas, el problema viene cuando hay texto muy grande, ya que la tabla deja su valor regular, en definitiva, queda así
Mientras que si el texto no es muy grande, todo queda bien
Trate segun esta pagina http://www.456bereastreet.com/archive/200704/how_to_prevent_html_tables_from_becoming_too_wide/ con table-layout:fixed; y word-wrap:break-word; en html options, pero nada, aquí les dejo mi código
$this->widget('bootstrap.widgets.BootGridView', array(
'type'=>'striped condensed',
'dataProvider'=>$model->search(),
'filter'=>$model,
'htmlOptions'=>array('style'=>'word-wrap:break-word; width:850px; table-layout:fixed; '),
'columns'=>array(
array(
'name'=>'USUARIO',
'htmlOptions'=>array('style'=>'width:200px'),
),
array(
'name'=>'NOMBRE',
'htmlOptions'=>array('style'=>'word-wrap:break-word; width:200px; table-layout:fixed; '),
),
array(
'name'=>'CORREO',
'htmlOptions'=>array('style'=>'width:200px'),
),
array(
'name'=>'TIPO',
'value'=>array($model, 'getTipo'),
'htmlOptions'=>array('style'=>'width:200px'),
),
array(
'name'=>'CCOMPANIA',
'value'=>array($model, 'getCompania'),
'htmlOptions'=>array('style'=>'width:200px'),
),
array(
'name'=>'ACTIVACION',
'htmlOptions'=>array('style'=>'width:10px'),
),
array(
'class'=>'bootstrap.widgets.BootButtonColumn',
'htmlOptions'=>array('style'=>'width: 50px'),
'template' => '{view} {update}',
),
),
));
}