Kendo-angular: Bug: splitter pane doesn't resize with changeDetection strategy OnPush

Created on 27 Feb 2018  路  4Comments  路  Source: telerik/kendo-angular

I'm submitting a...

  • Bug report

Current behavior

SplitterPane can not be resized.

Minimal reproduction of the problem with instructions

Run this Plunkr.
First one works (resizing) and second one does not.

Sugestion

It would be nice if changeDetection strategy OnPush would be more tested with Telerik team. I just spend 2 hours upgrading/downgrading Angular/rxjs/progress npm packages, pulling all code from Git, trying to prepare a plunkr, removing code from my project until I found the source of problem. It really doesn't occur to me that I should check changeDetection strategy.

I know OnPush is not default for Angular application, but I am pretty sure everyone is using it in any serious project. So maybe you should consider using it in all demo plunkrs.

Bug layout

All 4 comments

Just tried the @progress/kendo-angular-layout@dev package, still unable to use LayoutModule with ChangeDetectionStrategy.OnPush.

We are currently working on a resolution for this issue, and it should be included in an upcoming version in the near future.

A workaround for the problem is to call markForCheck() on the Angular change detector in the splitter layoutChange event. Here is a plunker that shows this approach.

A fix for this problem has been pushed on the development build channel of the layout package. The fix will be included in the next official version.

The fix is included in @progress/[email protected].

Was this page helpful?
0 / 5 - 0 ratings