Log in

View Full Version : tbody >> tr height issue in FF3



rayray1
12-31-2008, 04:41 PM
I've posted regarding this compenent [xbrowser compatible table with a fixed head and fixed tbody heigth that scrolls] the other day but it was a IE thead issue. I've updated my machine to FF3 and now I'm having tr height issues which were not present in FF2. How can I control the height of the tr in FF3 while maintaining a scollable tbody height of 200px?

The attached pdf shows only one record. Several must be present to see the scrollbar, yet, I'm only focused on controling the height of the tr with only one record is present. When 15+ records are present, the rows resize accordingly.

http://www.raneehyde.com/FFscreenshots.pdf

http://www.raneehyde.com/scrollingTrHeight.htm

Snookerman
12-31-2008, 05:52 PM
Do you need the table? It would be much better to user div containers instead. If you want, I can help you out with that.

Bolkstoff
01-16-2009, 06:57 PM
in case you were still looking for a response, this is a known/documented bug in FF3: https://bugzilla.mozilla.org/show_bug.cgi?id=415412

They post a couple fixes, none of which seem to work exactly as needed. The easiest solution is to add a new child selector to your CSS:

table>tbody:last-child
{
height: 100%;
}

Congrats if this works for you, however, in my implementation of this workaround, it worked, but then included my <thead> info as scrollable content...which was the point of using <thead> and <tbody> tags in the first place.