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

A bug in a splitter component

2 Answers 660 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 29 May 2018, 03:35 PM

Hi all!

I found a bug in a splitter component - you can open a plunker https://plnkr.co/edit/XJRTfXEIswV3fbwURc5X?p=preview and repeat next steps:

1. Change a position of a second splitter.
2. Then change a position of a first splitter – the bug is here – you can see that the second splitter is moved too.

How can I fix this behavior? 

Best regards,

 Sergey

2 Answers, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 30 May 2018, 11:28 AM
Hi Sergey,

Thank you for the provided sample plunker.

In order to be able to resize a Splitter pane we need to set its size. If we want to be able to resize the top and bottom panes, then we need to update the example as follows:

<kendo-splitter style="height: 500px;" orientation="vertical">
  <kendo-splitter-pane [scrollable]="true" size="20%">
      <h3>Scrollable content 1</h3>
      <div style="height: 600px">123</div>
  </kendo-splitter-pane>
 
  <kendo-splitter-pane [scrollable]="true">
      <h3>Scrollable content 2</h3>
  </kendo-splitter-pane>
   
  <kendo-splitter-pane [scrollable]="true" size="20%">
      <h3>Scrollable content 3</h3>
  </kendo-splitter-pane>
</kendo-splitter>

Indeed, this is not well noted in our documentation and we will make sure to update it accordingly.

Note that we always need to not set the size of at least one of the available Splitter panes as demonstrated in the following article:

https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#toc-specifying-the-dimensions

I hope this helps.

Regards,
Svetlin
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Sergey
Top achievements
Rank 1
answered on 30 May 2018, 11:58 AM

Hi Svetlin,

Thank you very much! It works good!

Best regards,

Sergey

Tags
General Discussions
Asked by
Sergey
Top achievements
Rank 1
Answers by
Svet
Telerik team
Sergey
Top achievements
Rank 1
Share this question
or