madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

setClassRowCondition sets the class before the ALT or does not replace the ALT #856

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a regular grid that uses the ALT row class
2. do a setClassRowCondition
3. the class ALT overight red (<tr class='red alt' >) and does not display red 
but rater ALT. on non ALT rows it displays fine since there is not "other or 
ALT classes set"

What is the expected output? What do you see instead?

Please insert the appropriate values;
Zend Framework version:
ZFDatgrid Version (Bvb_Grid::getVersion()): 0.8
                          Operating system: linux
                               PHP Version: 5.3
               Database Server and version: mysql 5.x
Source Adatapter:

Please provide any additional information below.

Original issue reported on code.google.com by jccompag...@gmail.com on 29 Apr 2012 at 7:06

GoogleCodeExporter commented 9 years ago
Hi,

This issue is related with CSS. CSS parser take in account the order of the 
code if there exist the same definition (will use the last value). I will show 
you one example:

.red { color: #FF0000; }
.alt { color: #000000; }

don't work.

.alt { color: #000000; }
.red { color: #FF0000; }

will work.

Best Regards
IM

Original comment by ivomonte...@gmail.com on 2 May 2012 at 1:14

GoogleCodeExporter commented 9 years ago
That's what i thought but i use your style.css that came with your demos and 
somehow that does not work

Original comment by jccompag...@gmail.com on 2 May 2012 at 1:22

GoogleCodeExporter commented 9 years ago
Other are overwriten 
Green override red, .... But not alt

Original comment by jccompag...@gmail.com on 2 May 2012 at 1:34

GoogleCodeExporter commented 9 years ago
For me is working as expected. Please, provide more details.

Original comment by ivomonte...@gmail.com on 3 May 2012 at 12:52

GoogleCodeExporter commented 9 years ago

Original comment by licentia...@gmail.com on 5 May 2012 at 7:06