Index: branches/RC/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r9257 -r9359 --- branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 9257) +++ branches/RC/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 9359) @@ -151,6 +151,9 @@ $block_params['sort_field'] = isset($options['sort_field']) ? $options['sort_field'] : $field; $block_params['filter_field'] = isset($options['filter_field']) ? $options['filter_field'] : $field; + $w = $picker_helper->GetWidth($field); + if ($w) $options['width'] = $w; + if (isset($options['filter_width'])) { $block_params['filter_width'] = $options['filter_width']; } @@ -191,6 +194,16 @@ return $data['crc']; } + function FreezerPosition($params) + { + /* @var $picker_helper kColumnPickerHelper */ + $picker_helper =& $this->Application->RecallObject('ColumnPickerHelper'); + $picker_helper->SetGridName($params['grid']); + $data = $picker_helper->LoadColumns($this->getPrefixSpecial()); + $freezer_pos = array_search('__FREEZER__', $data['order']); + return $freezer_pos === false || in_array('__FREEZER__', $data['hidden_fields']) ? 1 : ++$freezer_pos; + } + function GridFieldsCount($params) { $grids = $this->Application->getUnitOption($this->Prefix, 'Grids');