use width instead of height for status bar width
use just nav bar height when status bar is gone