Skip to content

Commit da6c52c

Browse files
committed
add gap in buttons and follow breakpoint logic
1 parent d5cbdee commit da6c52c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Classes/TreeTab.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
286286

287287
-- Timeline drawer; mutually exclusive with the power report drawer
288288
self.showTimeline = true
289-
self.controls.timelineToggle = new("ButtonControl", { "LEFT", self.controls.nodePowerMaxDepthSelect, "RIGHT", 20, 0 }, { 0, 0, 200, 20 },
289+
self.controls.timelineToggle = new("ButtonControl", { "LEFT", self.controls.nodePowerMaxDepthSelect, "RIGHT" }, { 8, 0, 200, 20 },
290290
function() return self.showTimeline and "Hide Passive Progression" or "Show Passive Progression" end, function()
291291
self.showTimeline = not self.showTimeline
292292
if self.showTimeline then
@@ -458,8 +458,9 @@ function TreeTabClass:Draw(viewPort, inputEvents)
458458
+ self.controls.treeHeatMap.width + 130
459459
+ self.controls.nodePowerMaxDepthSelect.width + self.controls.nodePowerMaxDepthSelect.x
460460
+ (self.isCustomMaxDepth and (self.controls.nodePowerMaxDepthCustom.width + self.controls.nodePowerMaxDepthCustom.x) or 0)
461-
+ (self.viewer.showHeatMap and (self.controls.treeHeatMapStatSelect.width + self.controls.treeHeatMapStatSelect.x
461+
+ (self.viewer.showHeatMap and (self.controls.treeHeatMapStatSelect.width + self.controls.treeHeatMapStatSelect.x
462462
+ self.controls.powerReport.width + self.controls.powerReport.x) or 0)
463+
+ (self.controls.timelineToggle:IsShown() and (self.controls.timelineToggle.width + 8) or 0)
463464

464465
-- Check first line
465466
if viewPort.width >= widthFirstLineControls + widthSecondLineControls + rightMargin then

0 commit comments

Comments
 (0)