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

Splitter does not initialize properly when using angular

1 Answer 93 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 19 Aug 2014, 08:30 PM
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
http://dojo.telerik.com/ubUB/2

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 20 Aug 2014, 07:52 AM
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.

Regards,
Alex Gyoshev
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
Jonathan
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or