Fix multiline textboxes in preferences dialog are not shown due to the lack of width

This commit is contained in:
Hadi Nategh 2015-03-13 13:17:11 +00:00
parent 857baddc2c
commit 783b340797

View File

@ -347,6 +347,7 @@ class preferences_settings
case 'textarea': case 'textarea':
$setting['type'] = is_a($tpl, 'etemplate') ? 'textarea' : 'textbox'; $setting['type'] = is_a($tpl, 'etemplate') ? 'textarea' : 'textbox';
$tpl->setElementAttribute($tab.'['.$setting['name'].']', 'multiline', 'true'); $tpl->setElementAttribute($tab.'['.$setting['name'].']', 'multiline', 'true');
$tpl->setElementAttribute($tab. '[' . $setting['name'] . ']','width', '99%' );
// anyway setting via css: width: 99%, height: 5em // anyway setting via css: width: 99%, height: 5em
// for old eT use size attribute // for old eT use size attribute
if (is_a($tpl, 'etemplate') && (!empty($setting['cols']) || !empty($setting['rows']))) if (is_a($tpl, 'etemplate') && (!empty($setting['cols']) || !empty($setting['rows'])))