Make tick padding context-sensitive