Column labels won't wrap for date fields

LabKey Support Forum (Inactive)
Column labels won't wrap for date fields jdutra  2012-02-15 09:19
Status: Closed
 
I've noticed that the column labels don't seem to wrap for date fields, even though they wrap automatically for other types of fields. So if I need to use a very long label for a date, the field keeps getting wider and wider. Is there anything I can do to change this (other than using shorter labels)? I've included an example, which is a general assay.
 
 
jeckels responded:  2012-02-24 18:00
I've done a little testing and haven't been able to repro this behavior.

Do you see it consistently in different web browsers?

Are there values in the data rows? Do you get the same behavior with and without data rows?

Thanks,
Josh
 
jdutra responded:  2012-02-27 10:33
I normally use FireFox, but I just tried this assay on IE and Safari as well, with the same results.

There are values in the data rows. The date fields behave the same way when there are data rows and when I filter all the data out (as I did in the screenshot).

I also just tried making long labels for date fields in a study dataset and a list, and those labels didn't wrap either.

I probably should have mentioned earlier that we are still using Labkey v11.1. Is there any chance this behavior has been fixed since then?

Thanks for your help,
Jen
 
jeckels responded:  2012-02-27 16:29
Hi Jen,

Yes, it's certainly possible that the behavior has changed. The labels are wrapping for me on dataset fields, for for example. If you look at the HTML for that table cell, do you see what's causing it to not wrap? A nowrap attribute on the <td> or <div> perhaps, or a CSS setting?

Thanks,
Josh
 
jdutra responded:  2012-02-28 06:47
I should have checked that earlier. The <td> has style="white-space:nowrap;text-align:left" so I guess that explains it. If the behavior has changed in 11.3 that will be helpful. Thank you!