# Hat flew into the post! [duplicate]

This question is an exact duplicate of:

I just noticed in this thread, Praphulla's hat is in the middle of the post. Refreshing didn't resolve the issue.

Screenshot:

## marked as duplicate by draks ..., user61527, Asaf Karagila♦, dfeuer, Grigory MDec 20 '13 at 19:24

This question was marked as an exact duplicate of an existing question.

• Well, if any hat were going to slip the surly bonds of page-layout, it should be Chuck Yeager's hat. – Blue Dec 19 '13 at 3:19
• That hat didn't fly into the proof, rather, the proof was pulled out of the hat! Here SE is testing animation of the new way to mark "proofs pulled out of a hat". Besides being marked that way to draw attention to them, they will also be added to a special review queue. The goal is to migrate all of these proofs to magic.SE. – Bill Dubuque Dec 19 '13 at 3:19
• I have been seeing screwy behavior with mathjax too, where it re-sizes or corrupts it, but a page refresh corrects it. I suspect the hat feature is causing this. – Amzoti Dec 19 '13 at 7:51
• @Amzoti: Ah really? Refresh doesn't work for me (I just refreshed 5 times in a row). The problem still persists in my screen (for the same page linked above). – Prism Dec 19 '13 at 7:53
• I am talking about the corruption to the mathjax (equations), not the persistent hat. Regards – Amzoti Dec 19 '13 at 7:55
• @Amzoti: Right. But for me, that happens all the time ever since new version of mathjax has been deployed. Especially when I just post a question or an answer, there are space misaligning and size issues. Oh well. – Prism Dec 19 '13 at 7:57
• Maybe this is a new issue and it should be reported as a separate issue too as it is very annoying. I assumed it was the hats, but maybe not. – Amzoti Dec 19 '13 at 7:58
• @Amzoti: It has already been reported here. Especially see Jyrki's comment. – Prism Dec 19 '13 at 7:59
• What I am seeing is much worse, it is changing sizes of entire equations, putting them on the wrong part of the screen, mushing them together, corrupting them ... – Amzoti Dec 19 '13 at 8:02
• @Amzoti: Ohhhh… Yes I do remember seeing that happen once today… You are right… Probably caused by hats. – Prism Dec 19 '13 at 8:07

## 1 Answer

Interesting. Most other hats are positioned on the page relative to user's avatar (position: relative), but this one is given absolute coordinates, with respect to the upper left corner of the page: (position: absolute). Presumably, said coordinates are calculated after the page loads and the hat-adding script can see where the avatar is. Trouble is, the page also has this MathJax thing going on, with several displayed formulas. When they eventually get rendered, the avatar ends up lower than it was when the hat was positioned. Possible fixes:

1. position all hats relative to avatar
2. add hats after MathJax runs