add resize handlers, screen width error to expandedWidgets

This commit is contained in:
Bradley Cicenas
2017-03-07 09:05:04 +11:00
parent 2ee0ae7fcb
commit d94aed1531
7 changed files with 98 additions and 33 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ func NewExpandedCpu() *ExpandedCpu {
cpu := &ExpandedCpu{ui.NewLineChart(), NewFloatHist(60)}
cpu.BorderLabel = "CPU"
cpu.Height = 10
cpu.Width = 50
cpu.Width = colWidth[0]
cpu.X = 0
cpu.Y = 4
cpu.Y = 6
cpu.Data = cpu.hist.Data
cpu.DataLabels = cpu.hist.Labels
cpu.AxesColor = ui.ColorDefault