File tree 1 file changed +9
-0
lines changed
projects/igniteui-angular/src/lib/splitter
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 {
216
216
}
217
217
218
218
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
+
219
224
const paneSize = this . initialPaneSize - delta ;
220
225
const siblingSize = this . initialSiblingSize + delta ;
226
+
227
+ if ( paneSize < min || paneSize > max || siblingSize < minSibling || siblingSize > maxSibling ) {
228
+ return ;
229
+ }
221
230
if ( this . pane . isPercentageSize ) {
222
231
// handle % resizes
223
232
const totalSize = this . getTotalSize ( ) ;
You can’t perform that action at this time.
0 commit comments