File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
projects/igniteui-angular/src/lib/splitter Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -216,8 +216,17 @@ export class IgxSplitterComponent implements AfterContentInit {
216216 }
217217
218218 public onMoveEnd ( delta : number ) {
219+ const min = parseInt ( this . pane . minSize , 10 ) || 0 ;
220+ const max = parseInt ( this . pane . maxSize , 10 ) || this . initialPaneSize + this . initialSiblingSize ;
221+ const minSibling = parseInt ( this . sibling . minSize , 10 ) || 0 ;
222+ const maxSibling = parseInt ( this . sibling . maxSize , 10 ) || this . initialPaneSize + this . initialSiblingSize ;
223+
219224 const paneSize = this . initialPaneSize - delta ;
220225 const siblingSize = this . initialSiblingSize + delta ;
226+
227+ if ( paneSize < min || paneSize > max || siblingSize < minSibling || siblingSize > maxSibling ) {
228+ return ;
229+ }
221230 if ( this . pane . isPercentageSize ) {
222231 // handle % resizes
223232 const totalSize = this . getTotalSize ( ) ;
You can’t perform that action at this time.
0 commit comments