This is a migrated thread and some comments may be shown as answers.

Bug in SPA environment

1 Answer 40 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Matjaz
Top achievements
Rank 1
Matjaz asked on 06 Apr 2015, 09:00 AM

I have two views. If you navigate from first view to second view and then back to first view, then resize browser and navigate to second view again, splitter on second view is not showing any data (k-pane has width or height or both set to zero).

Unfortunately the browser resize even if you download some file and status bar (progress) appears (Chrome). I am tracking this issues for several months now, and only now I manage to figure it out how to reproduce it.

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 08 Apr 2015, 06:57 AM
Hi Matjaz,

The Splitter uses a window.resize handler, but the widget cannot calculate its layout if it is not visible. The easiest option is to execute the Splitter's resize() method when its parent view becomes visible. For future Kendo UI releases, we will probably disable the resizing routine of all widgets when they are not visible.

http://docs.telerik.com/kendo-ui/using-kendo-in-responsive-web-pages#individual-widget-resizing

http://docs.telerik.com/kendo-ui/api/javascript/view#events-show

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Splitter
Asked by
Matjaz
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or