We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c6a481 commit 7922882Copy full SHA for 7922882
src/TimeGrid.jsx
@@ -203,13 +203,14 @@ let TimeGrid = React.createClass({
203
let isRtl = this.props.rtl;
204
let header = this.refs.headerCell;
205
let width = this._gutterWidth
206
+ let gutterCells = [findDOMNode(this.refs.gutter), ...this._gutters]
207
let isOverflowing = this.refs.content.scrollHeight > this.refs.content.clientHeight;
208
- this._gutterWidth = getWidth(findDOMNode(this.refs.gutter));
209
+ this._gutterWidth = Math.max(...gutterCells.map(getWidth));
210
211
if (width !== this._gutterWidth) {
212
width = this._gutterWidth + 'px';
- this._gutters.forEach(node => node.style.width = width)
213
+ gutterCells.forEach(node => node.style.width = width)
214
}
215
216
if (isOverflowing) {
0 commit comments