[Core] Toggle close buttons on layout change for #1647.
[Core] Update computed widths if not ready for #1647.
[Core] Always show close button for current tab.

Finally closes #1647.