Bug in SPA environment

2 posts, 0 answers
  1. Matjaz
    Matjaz avatar
    94 posts
    Member since:
    Jun 2014

    Posted 06 Apr 2015 Link to this post

    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.

     

  2. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 08 Apr 2015 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top