Welcome, Guest
Please Login or Register.    Lost Password?

Control of vertical alignment
(1 viewing) (1) Guest
Welcome to the ToolsJX forum!


Go to bottom
Post Reply
Post New Topic
Page: 1
TOPIC: Control of vertical alignment
#422
Control of vertical alignment 1 Year, 9 Months ago Karma: 0
Hi,

The default vertical alignment in 'centre' for all rows. I cannot see a way to control the alignment. Ideally I would like my rows to have a 'top' alignment.

Can you tell me if this is possible please?

Thank you
David
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
djb
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/20 15:12 By djb.
Reply Quote
 
#424
Re:Control of vertical alignment 1 Year, 9 Months ago Karma: 1
Hi,

alignment cannot be set in admin area (for now). If you have some html skills you can do it in the code in 2 ways. If you define new css class selector (/components/com_grid/css/grid.css) and apply it in html tag (/components/com_grid/layouts/GridView.php) like this for the grid_title: <span class=\"grid_title \">".$this->_config->tableCaption."</span>";

Or directly with html valign in (/components/com_grid/layouts/GridView.php) for rows around line 235.

Best regards,
Viljem
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
viljem
Admin
Posts: 181
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/04/21 00:38 By viljem.
Reply Quote
 
#487
Re:Control of vertical alignment 1 Year, 9 Months ago Karma: 0
Viljem,

Thank you for this information. I made the change and it worked fine.

Here's the change in case anyone else needs it:

$field['output_script'] .= "<tr valign=\"top;\" id=\"row"....

Regards
David
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
djb
Junior Boarder
Posts: 20
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1
Moderators: tomaz
Tools JX, Powered by Joomla!; Joomla templates by SG web hosting