mozilla-b2g/gaia — pull request #22546 by jrburke (2014-08-06 02:00:06+00:00)
Title: Bug 1048539 - [B2G][Email][Drawer] The account selecter pull-down is displayed improperly in the Drawer

If the drawer is open before the account list is known, the `fld-acct-header-account-label` element is empty, and gives an incorrect, smaller height size when `this.accountHeader.getBoundingClientRect().height` is called.

This change adds some content for that first height query in the case the user taps on the menu icon before the model data is fully known.

I did this instead of giving `fld-acct-header-account-label` a height in CSS because we want the size to be dynamic, and respond to things like font sizing for the app, which may be set not where this sort of CSS height would be set. We do not need to worry about a long email address either, the element is set up to nowrap with ellipsis. So we just need some content.

I favored using an HTML entity (some sort of non-whitespace text) over a plain or \n (or other whitespace) (with a comment inside explaining the whitespace) just in case comments and whitespace are trimmed by optimization tools at some point.