Welcome, Guest
Please Login or Register.    Lost Password?

First line of wrapped text indented
(1 viewing) (1) Guest
Welcome to the ToolsJX forum!


Go to bottomPage: 1
TOPIC: First line of wrapped text indented
#421
First line of wrapped text indented 4 Months, 2 Weeks ago Karma: 0
Hi,

I have just installed Table JX and built my first table. All very easy - thank you.

I am looking at my information through FireFox and I notice that where the information in a cell wraps onto more than one line, the first character of the first line is slightly indented. This happens on every cell where the text wraps. The same effect is seen when using IE8.

Can you tell me if I can remove this indent please?

Thank you
David
djb
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#423
Re:First line of wrapped text indented 4 Months, 2 Weeks ago Karma: 1
Hi,

you can search in \components\com_grid\layouts\GridView.php for space character   and remove it (for header around line 213 and for rows around line 238)

Best regards,
Viljem
viljem
Admin
Posts: 152
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/21 00:16 By viljem.
The administrator has disabled public write access.
 
#470
Re:First line of wrapped text indented 4 Months ago Karma: 0
Viljem,

I made the change to the gridview.php last night and had 50% success.

Removing the &nbsp from the rows worked well tht text now neatly aligns.

I removed the &nbsp from the header but this is not reflected when I refresh the grid. As a result, the column headings are still inset by a space.

These are the lines I changed in the header section:

Line 90:

//$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\">&nbsp;</span></td>
$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\"></span></td>

and line 180:

//$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\">&nbs;</span></td>
$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\"></span></td>

Were these the correct lines to change?

There are other &nbs charaters further down the script but these don't see to affect the header.

Thank you for our help
David
djb
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#471
Re:First line of wrapped text indented 4 Months ago Karma: 0
djb wrote:
Viljem,

I made the change to the gridview.php last night and had 50% success.

Removing the &nbsp from the rows worked well tht text now neatly aligns.

I removed the &nbsp from the header but this is not reflected when I refresh the grid. As a result, the column headings are still inset by a space.

These are the lines I changed in the header section:

Line 90:

//$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\">&nbsp;</span></td>
$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\"></span></td>

and line 180:

//$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\">&nbs;</span></td>
$field['output_script'] .= "<td bgcolor=\"".$this->_config->hColor."\"><span class=\"field\"></span></td>

Were these the correct lines to change?

There are other &nbs charaters further down the script but these don't seem to affect the header.

Thank you for our help
David
djb
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting