mozilla-b2g/gaia — pull request #10963 by julienw (2013-07-14 15:54:01+00:00)
Title: Bug 890443 - [SMS] the "fixed header" style and transitions should be ad...

...justed so that it's not jumping when changing header r=borja

Important changes
* changes how the fixed header is found. Now we're iterating starting with the
top instead of the bottom. In the SMS app, the most common cases is when the
list is not scrolled so much, and therefore starting at the top will likely be
way faster once the list is long.
* we don't position the header in the same loop, now we position the header
depending on the next header, if it exists.
* we use a specific hiding class instead of specifying the 100% transform
translation in the js code. Also, using a 100% transform translation is used
instead of display none, so that we can get some necessary measurements in the
init method. Most notably, we need to take into account the view's padding
top.

Less important changes:
* changed the desktop mock so that we have more headers when loading in Firefox
* check that we have mozSetMessageHandler before using it so that we can launch
the app in main Firefox
* moved the first header's margin top to the view's padding top. BTW this
removes a building blocks override.