nathancahill / split

Unopinionated utilities for resizeable split views
https://split.js.org/
MIT License
6.1k stars 448 forks source link

[split-grid] columnMaxSize(s) not working #782

Open BernhardBaumrock opened 1 year ago

BernhardBaumrock commented 1 year ago

Hello and thx for the great library!

I have the following setup: 3 columns, the left should be min 50, max 250

Split({
  columnMinSize: 50,
  columnMinSizes: {
    0: 150,
  },
  columnMaxSizes: {
    0: 250,
  },
  columnGutters: [{
    track: 1,
    element: document.querySelector('.gutter-col-1'),
  }, {
    track: 3,
    element: document.querySelector('.gutter-col-3'),
  }],
})
image image

No matter what I try the columnMaxSizes seems to be ignored. I've also tried using columnMaxSize but the result is the same.

Any help would be greatly appreciated!

cgrime01 commented 1 year ago

Pull request

wykopx commented 5 months ago

@nathancahill Any chance this issue will be fixed?

columnMinSizes columnMaxSizes rowMinSizes rowMaxSizes

Are not working.

https://www.npmjs.com/package/split-grid?activeTab=readme#reference

image