Skip to content

Commit

Permalink
columnMaxSize
Browse files Browse the repository at this point in the history
  • Loading branch information
CI Automation committed Aug 4, 2023
1 parent 4875943 commit 78d9637
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/split-grid/src/Gutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,14 @@ class Gutter {
bTrackSize = this.minSizeEnd
}

if (aTrackSize > this.maxSizeStart) {
aTrackSize = this.maxSizeStart;
}

if (bTrackSize > this.maxSizeEnd) {
bTrackSize = this.maxSizeEnd;
}

if (this.trackValues[this.aTrack].type === 'px') {
this.tracks[this.aTrack] = `${aTrackSize}px`
} else if (this.trackValues[this.aTrack].type === 'fr') {
Expand Down

0 comments on commit 78d9637

Please sign in to comment.