This topic is locked
[SOLVED]

 Changing Column Width in Visual Editor

8/29/2010 12:18:27 PM
PHPRunner General questions
P
procheck author

I'm unable to change the width of a column in Visual Editor. Below is the answer by Sergey from a previous post.
You can do this using Visual Editor. Make sure you have enough space on the list page to fit all columns. If you have too many columns on the page you won't be able to change the width.
My question is what does he mean by enough space? I've tried changing Characters to display in the Table Settings but it had no effect.
Thank-you
Al

A
ann 8/30/2010

Al,
just drag and drop column border in order to change the width on the Visual Editor tab.

Also you can do it in the HTML mode by changing the style of the <TD> tag. Here is a sample:

{BEGIN checkbox_column}<TD style="WIDTH: 19px" class=borderbody vAlign=middle align=middle>{BEGIN checkbox}

<INPUT type=checkbox {$checkbox_attrs}> {END checkbox}</TD>{END checkbox_column}



If you have to many columns you won't be able to perform these changes.

P
procheck author 8/30/2010

Hi Ann,
I should have mentioned that I can drag a border or change the HTML for screens with only a few columns but when there are many then I cannot. Is there a maximum table size setting?
Thanks
Al

Sergey Kornilov admin 8/31/2010

Al,
I know it sounds vague but you really need to have enough space on the list page in order to resize columns.
The width of table with records is typically set to take 100%. If you have 10-15 columns on this page it's likely to take all available space in Visual Editor.
Now, if you want to resize one of columns editor either needs to expand the whole table (which is not always possible if it already takes 100% of available width) or decrease width of other columns. Reducing column width is not always possible as browser needs to accommodate some text there.
PHPRunner 5.3 will provide some resizing-related improvements however there is no silver bullet here.

P
procheck author 8/31/2010

Hi Sergey,
That's how I saw it by looking at the html but I just wanted to verify it. I'm only starting to scratch

the surface of PHPRunner and I wanted to make sure that I was understanding it correctly.
Thanks again.
Al