Congratulations to Masi Oka, who portrays Hiro Nakamura in Heroes, on his Diversity Award win for "Best Actor in a TV Drama"!

Help talk:Collapsible tables

From Heroes Wiki

Jump to: navigation, search

So ... anybody know why the autocollapsed tables on Special:Upload have to be clicked twice to get them to open?—Hardvice (talk) 02:16, 28 October 2007 (EDT)

  • Incidentally, it only seems to do it in Firefox, not IE. It seems to be the lack of a width declaration, but width: auto doesn't fix it, and min-width doesn't seem to work.—Hardvice (talk) 02:26, 28 October 2007 (EDT)
    • Does it do it in Opera too, or this solely a Firefox bug? Guess this one of the rare times Firefox isn't better than IE. ;)—MiamiVolts (talk) 12:29, 28 October 2007 (EDT)
      • I only use Opera on the Wii, but Safari doesn't do it. As for IE doing it "better", I think it doesn't have the same problem because IE actually loads and displays everything expanded/non-collapsible first, then applies the Javascript, whereas Firefox just renders everything in one go. I guess it depends on your definition of "better".—Hardvice (talk) 12:34, 28 October 2007 (EDT)
        • Heh, I set you up for that one... I guess the solution should be Firefox specific? I think we could put a catch that if the firefox is the browser, to run an extra execution of "toggleTableView". That may fix the display to load correctly. The alternative is to force a table width if the browser is Firefox. Opinions?—MiamiVolts (talk) 12:44, 28 October 2007 (EDT)
          • For the tables in question, we could just put in width: 100%. It would make them wider than they need to be when collapsed, but they should still balance automatically. Anything less than 100% wouldn't let them expand widely enough when uncollpased.—Hardvice (talk) 12:48, 28 October 2007 (EDT)
            • That's not what I meant. I mean, we could either do a style change in javascript such that if the browser is Firefox, it automatically sets the style width to 100%, or we could try an extra iteration or two of ToggleTableView, (kind of how the TOC link names get updated). Any preference?—MiamiVolts (talk) 13:13, 28 October 2007 (EDT)
              • I know that's not what you meant. I was suggesting something simpler that doesn't require more JavaScript. Adding a width fixes the problem.—Hardvice (talk) 13:17, 28 October 2007 (EDT)
Personal tools
Heroes Merchandise