fix bug: got 0 when try to get statusbar's height