Increase Text Field Height in Test Cases page

The release related discussions, plans and questions.
Locked
MacLeod
TestLink user
Posts: 1
Joined: Thu Feb 14, 2008 12:21 pm

Increase Text Field Height in Test Cases page

Post by MacLeod »

Hi all!

I want to increase Height for Text Field for Steps and Expected Results.

How can I do that?
psi3si
TestLink user
Posts: 10
Joined: Fri Mar 21, 2008 4:11 pm

Post by psi3si »

Hi,

I have the sema question.
I would like to customize the height of field summary and steps with different value : smaller value for summary and bigger one for steps.
I try to change the value in the file fckeditor_php5.php, it works but all fields have the same size.
Is it possible to spécify the value for each field ?

Thanks to help me.
apugohome
TestLink user
Posts: 4
Joined: Mon Mar 17, 2008 9:20 pm

Post by apugohome »

You might want to look at the following possible solution for increasing the size of the text area:
http://www.teamst.org/phpBB2/viewtopic.php?t=638

The additional button on the toolbar allows you to maximize the size of the the text input area when you need.

I'm not sure about an option to have different size windows.
psi3si
TestLink user
Posts: 10
Joined: Fri Mar 21, 2008 4:11 pm

Post by psi3si »

Thanks apugohome for this solution.

But i have found another solution to be able to modify different size for each field in edit test case:
- modify the config file custm_config.inc.php and had constant with parameter value
$g_testcase_height->summary = "120";
$g_testcase_height->steps = "350";
$g_testcase_height->expected_results = "200";

- edit the file lib/testcases/tcEdit.php and modify where the fckedit objects are created and initialized. The modification are indicated in bold style :

// --------------------------------------------------------------------
// create fckedit objects
$a_ofck = array('summary','steps','expected_results');
$oFCK = array();
$my_height = config_get('testcase_height');
foreach ($a_ofck as $key)
{
$oFCK[$key] = new fckeditor($key) ;
$of = &$oFCK[$key];
$of->BasePath = $_SESSION['basehref'] . 'third_party/fckeditor/';
$of->ToolbarSet=$g_fckeditor_toolbar;;
$of->Height = $my_height->$key;
}
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Thanks, I will add it into 1.8.
Locked