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

Kendo Splitter does not properly resize in a window

1 Answer 574 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Michelle
Top achievements
Rank 1
Michelle asked on 30 Jun 2016, 07:15 PM

Hi, please look at the following example:

http://docs.telerik.com/kendo-ui/controls/layout/window/how-to/add-auto-resizing-splitter

Please run the example and follow these steps:

1. Move the splitter to the right.

2. Move mouse to the right edge of the window and drag towards the left.

(i.e. resize the window to be smaller using the right edge of the window)

3.  Note that the splitter does not resize proportionally and becomes hidden such that you can no longer operate the splitter.

 

Are there any fixes/workarounds for this?

 

Thanks,

Michelle

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Jul 2016, 11:48 AM
Hi Michelle,

The observed behavior is related to the following logic of the Splitter widget:

- initially, no pane sizes are specified, so the layout is constructed proportionately (e.g. 50%/50%) and the pane proportions are maintained if the whole widget is resized
- as soon as the user resizes a pane, the pane sizes start to be calculated and applied as fixed amounts, instead of proportions
- if the whole widget is resized now,  proportionate sizes will not be applied

To change the above behavior, you can use the following approach:

http://docs.telerik.com/kendo-ui/controls/layout/splitter/how-to/keep-pane-size-in-percentages

The idea is to reset the pane sizes in the Splitter's resize event. Feel free to modify the logic, according to your preferences and requirements.

Another option is to enable Window scrolling by removing the overflow:hidden style, but this is not recommended, as it may result in scrollbar and Splitter flickering during resize.

Regards,
Dimo
Telerik
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Splitter
Asked by
Michelle
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or