MCPcopy
hub / github.com/e-oj/Magic-Grid / colWidth

Method colWidth

src/index.js:103–105  ·  view source on GitHub ↗

* Calculates the width of a column. * * @return width of a column in the grid * @private

()

Source from the content-addressed store, hash-verified

101 * @private
102 */
103 colWidth () {
104 return this.items()[0].getBoundingClientRect().width + this.gutter;
105 }
106
107 /**
108 * Initializes an array of empty columns

Callers 2

setupMethod · 0.95
positionItemsMethod · 0.95

Calls 1

itemsMethod · 0.95

Tested by

no test coverage detected