r.Min.x+=g.Style.FramePadding.x+g.FontSize;// + g.Style.ItemInnerSpacing.x; // <-- Adding ItemInnerSpacing makes the title text moves slightly when in a tab bar. Instead we adjusted RenderArrowDockMenu()
if(node->HasCloseButton)
r.Max.x-=g.Style.FramePadding.x+g.FontSize+1.0f;
// In DockNodeUpdateTabBar() we currently display a disabled close button even if there is none.