Hi Marcin,
You're doing it wrong 🙂
Just use Utils_RecordBrowser::set_header_properties method
This is an example from modules/CRM/Roundcube/Roundcube_0.php file:
$rb->set_header_properties(array(
'date'=>array('width'=>10),
'contacts'=>array('name'=>__('Involved contacts'), 'width'=>20),
'subject'=>array('name'=>__('Message'),'width'=>40),
'attachments'=>array('width'=>5),
'count'=>array('width'=>5)
));
In your case you should edit
modules/Contacts/Contacts_0.php file. Use something similar to that in the
body function for mode == 'company'
$this->rb->set_header_properties(array('company_name' => array('width' => 10)));
// $this->rb->set_header_properties(array('company_name' => array('width' => '10 em')));
You can use width as numeric, then it will be dynamic - it will stretch. But you can also put here a string value with 'px', 'em' at the end to achieve fixed width.
other possible keys for header properties are: 'name', 'wrapmode', 'width', 'display'
Finally - it's not a nice solution, because it will be removed after EPESI update. However now it's the simplest way.
Regards,
Adam