Proper handling of mouse clicking in tab bar when some tabs are wider characters