@@ -53,7 +53,7 @@ function addonTable.Display.TabsBarMixin:PositionTabs()
5353 xOffset = xOffset + tab :GetWidth () + addonTable .Constants .TabSpacing
5454 end
5555 end
56- if xOffset > self .chatFrame :GetWidth () then
56+ if xOffset - addonTable . Constants . TabSpacing > self .chatFrame :GetWidth () then
5757 local index = # self .Tabs - 1
5858 while xOffset + self .dropdownTabButton :GetWidth () > self .chatFrame :GetWidth () do
5959 local tab = self .Tabs [index ]
@@ -449,7 +449,7 @@ function addonTable.Display.TabsBarMixin:RefreshTabs()
449449 self .dropdownTabButton .isDraggable = false
450450 self .dropdownTabButton :SetText (addonTable .Constants .TabDropdownMarkup )
451451 self .dropdownTabButton :SetScript (" OnClick" , function ()
452- MenuUtil .CreateContextMenu (self , function (menu , rootDescription )
452+ MenuUtil .CreateContextMenu (self , function (_ , rootDescription )
453453 for _ , tab in ipairs (self .dropdownTabs ) do
454454 local button = rootDescription :CreateButton (CreateColor (tab :GetColor ()):WrapTextInColorCode (tab :GetText ()), function (_ , details )
455455 tab :Click (details .buttonName )
@@ -458,6 +458,7 @@ function addonTable.Display.TabsBarMixin:RefreshTabs()
458458 b :RegisterForClicks (" LeftButtonUp" , " RightButtonUp" , " MiddleButtonUp" )
459459 end )
460460 end
461+ rootDescription :SetScrollMode (20 * 20 )
461462 end )
462463 end )
463464 self .dropdownTabButton :Show ()
0 commit comments