This topic is locked

Resize inline column wide

10/11/2013 12:29:43 PM
PHPRunner General questions
N
netdev author

I am using PHPRunner 6.1.
I have a master/detail page with inline detail add/edit. The column/field widths in the inline table are very wide. Is there a way to modify the widths of the columns? If so, how?
Tim

N
netdev author 10/12/2013

This is the hack that I did to resize the default width of input.
I change the default size of input and textarea in \source\include\commonfunctions.php.
I hope there is a better way to set the size individually.

Sergey Kornilov admin 10/12/2013

In PHPRunner 6.1 proceed to Visual Editor, double-click on field and set field width in characters under 'Edit as' settings.
In PHPRunner 6.2 and 7.0 you can simply drag edit control by its edge in order to resize it.

N
netdev author 10/12/2013



In PHPRunner 6.1 proceed to Visual Editor, double-click on field and set field width in characters under 'Edit as' settings.
In PHPRunner 6.2 and 7.0 you can simply drag edit control by its edge in order to resize it.


I want to change the sizes of the input fields in the "child" tables, which are auto generated. The "control" has a auto generated name called displayDetailTableName, e.g. displayDetailItems, displayDetailOrders, etc.

Sergey Kornilov admin 10/13/2013

Just go to the child table Edit page in Visual Editor and resize controls there. Works in version 7.0.

N
netdev author 10/13/2013



Just go to the child table Edit page in Visual Editor and resize controls there. Works in version 7.0.


I don't think there is a child table Edit page in version 6.1.
I will look into upgrade to version 7.
Thanks

Sergey Kornilov admin 10/13/2013

There is a child table Edit page in PHPRunner 6.1. Just go to the Visual Editor, expand section that is named after child table and modify widths of edit controls.

N
netdev author 10/14/2013



There is a child table Edit page in PHPRunner 6.1. Just go to the Visual Editor, expand section that is named after child table and modify widths of edit controls.


There is a big code change from 6.1 to 6.2. So the changes made in child table list view are applied better in 6.2.
I am able to resize the input type of text and textarea with 6.2. I don't have 7.0.
But for the input type of "datetime", I am not able to resize. There is no "size" property in edit property window. I set the width of the cell. But the width of the cell is applied only to the <td> and not to the <span> tag inside the <td>. So for "datetime", it can' be "resized". I think this is a bug. Maybe this is fixed in 7.0.

Sergey Kornilov admin 10/14/2013

I don't think I fully understand this. Date values always have the same width, resizing date edit controls don't make much sense to me.

N
netdev author 10/14/2013



I don't think I fully understand this. Date values always have the same width, resizing date edit controls don't make much sense to me.



I want the width of the date input fields to be shorter so the users don't need to scroll horizontally. I am using an input type of date and NOT datetime, which does require a longer width. For a date type, the width does not need to be that wide.
I set the cell width to be 100px. But the displayed date input has a width of 131px. The cell width of 100px is not doing anything. If the "100px" is applied to the input field of id="value_start_date_4", then the date input will resize properly.

Sergey Kornilov admin 10/14/2013

I can suggest to try version 6.2 or version 7.0 that have more control over with of edit controls. Not sure what else to suggest.

N
netdev author 10/14/2013



I can suggest to try version 6.2 or version 7.0 that have more control over with of edit controls. Not sure what else to suggest.


The screenshot was produced with 6.2.
I am using 6.2 now. It does indeed have more control.
I will download a 7.0 trial version to see if it allows resizing of the date input field.
Thanks