[TabBar] Position of add tab button was incorrect sometimes.

Fixed showing add tab button always at correct position.
Also removed duplicate code in tabSize.