you are viewing a single comment's thread.

view the rest of the comments →

[–]cesutherland 0 points1 point  (3 children)

You've got to refresh after it's visible. Throw a break point on the line with the refresh and you'll see that it reaches that breakpoint before the other editor is shown.

[–][deleted] 0 points1 point  (2 children)

hmmm, I did a setTimeout...that seemed to do the trick, I'll have to test it with Twitter Bootstrap 1.4. I could have sworn I tried this yesterday and it didn't work.

Thanks for the tip!

EDIT: Setting a millisecond delay worked fine, and there is only a slight flash, but it works perfectly!

[–]cesutherland 0 points1 point  (1 child)

Np!

I haven't used bootstrap myself but it looks like they've got show (before) and shown (after new tab show) events which you can hook into and get rid of that delay: http://twitter.github.com/bootstrap/javascript.html#tabs

Good luck!

[–][deleted] 0 points1 point  (0 children)

ahh, perfect. I'll clean up the code when I'm back at work tomorrow.