so, no solution for the miscalculated display of the 2 columns in k2!?
meanwhile I just checked the demo site of k2: it has the same problem in IE6 - the 2 columns are rendered as 1, leaving the 2nd column under the first, which looks weird for sure...
any suggestions in the direction Bill Garrett made?
krmr trzv said:Hi there! I have been fighting this issue with no luck. I did what was suggested as a change in the code of category.php
Unfortunately, while it works for IE all versions, it does not work for FF, Safari... seems this change of code breaks the first % string somehow.
Any suggestions how to handle this?
10x in advance
Bill Garrett said:Hi Everyone, Well here is the answer;
This is an IE6 and IE7 issue.
In the components/com_k2/templates/default/category.php (be aware that some templates particularly those from rocketthemes may over-ride this file, if they do apply this fix in the template file not the com_k2 file) there are a number of lines that look like this:
params->get('num_leading_columns'), 1); ?>%;"> This produces a link rather like this in the rendered html:
This statement divides the available space by the number of columns required by K2. IE6 and IE7 both have a problem with this and essentially miss the width specification in the html and resort to a single column.
If you change the lines in category.php to read like this:
params->get('num_leading_columns'), 1); ?>%:#width:%:_width:%;"> You get a line in the rendered html that reads:
FF. IE8 etc will read the first width definition, IE7 will read the second and IE6 will read the third. This solves the problem for me.
Bill