Fix some layout issues on mozilla device