fix custom navbar for tablets

Change-Id: I25eb74c468aba5bef6f6128c2e6ee4b4e4b50daa