I only found this issue by accident while researching this issue.
My table-style view has three fields... the first is left-justified, the other two should be right-justified - and the Format settings for the table are set accordingly. Because of the above referenced issue, if I then turn off "Add default classes" at the field level, the data isn't justified, though the column heading is.
The issue I'm reporting here, though, is that when I went back and enabled "Add default classes" only for the first of the two right-justified fields, *both* fields ended up right-justified. When I then disabled "Add default classes" for that field and enabled it only for the right-most field, *only* that field was right-justified (as expected). See screenshots.
Just a guess, but what appears to be happening is, once the rendering routine hits a field with the "Add default classes" enabled, it stays enabled for all remaining fields in the view.
Comment | File | Size | Author |
---|---|---|---|
no-default-classes.png | 23.91 KB | ExTexan | |
defaults-on-balance.png | 28.15 KB | ExTexan | |
defaults-on-quantity.png | 22.92 KB | ExTexan |
Comments
Comment #2
ExTexan CreditAttribution: ExTexan commentedHere's some additional information that might help. I had another view with 11 columns. The first column had alignment set to "Center"; columns 2 through 6 were align "None"; column 7 was align "Right", 8 was "None"; 9 and 10 were "Right"; 11 was "None". Only the first column had "Add default classes" enabled (so that the "center" would work), though I had unintentionally omitted it from the three columns that were align "Right".
Result: all 11 columns were centered.
I then enabled "Add default classes" on column 7. Then the first 6 columns were centered and the remaining 5 were right-justified.
So it seems that whenever an alignment class is applied, and "Add default classes" is enabled, that alignment is applied to all subsequent columns, until another column is encountered that has both an alignment specified and "Add default classes" enabled.
Comment #3
LendudeMoving to the core Views queue.
Comment #4
Lendude