1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix grid: key issue when key is present

Really do need it to work with and without a grid: key.

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer 2019-11-09 14:13:47 -08:00
parent 5bbbda22aa
commit b2093314f0

View File

@ -134,8 +134,8 @@ func CalculateDimensions(moduleConfig, globalConfig *config.Config) (int, int, e
return 0, 0, err
}
cols := ToInts(grid.UList("wtf.grid.columns"))
rows := ToInts(grid.UList("wtf.grid.rows"))
cols := ToInts(grid.UList("columns"))
rows := ToInts(grid.UList("rows"))
// Read the source data from the config
left := moduleConfig.UInt("position.left", 0)