Splitter does not initialize properly when using angular

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    10 posts
    Member since:
    Feb 2014

    Posted 19 Aug 2014 Link to this post

    When a splitter is hidden behind a ng-show, the splitter is in a bad state when it is shown.  In the code that i have linked to, I hide the splitter if $scope.tab is equal to 1. If you change $scope.tab to be 2, the splitter works fine.

    Any help on this would be appreciated.

    For an example of this happening look at
  2. Alex Gyoshev
    Alex Gyoshev avatar
    2497 posts

    Posted 20 Aug 2014 Link to this post

    Hello Jonathan,

    You need to call the kendo.resize method after the splitter has been shown, so that pane sizes are calculated correctly -- see the updated Dojo snippet. Alternatively, you can use the Kendo UI TabStrip instead of building your own.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top