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

min size and variable width

1 Answer 63 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Ruben
Top achievements
Rank 1
Ruben asked on 22 Jul 2019, 09:37 PM
Hi! I have an issue related with the splitter, in my project i have a splitter with 3 areas (horizontal) in my screen but at the first load when the screen width its too small, the min size that I want is ignored and the actual size that its rendered its less that i expect so the min size value that i set on the code only works when the splitter is resized, i don't know if there is a way to prevent this. 

function getPaneOptions(element) {
   return {
       collapsible: element.attributes['pane-collapsible'] ? true : false,
       size: element.getAttribute('pane-size') || '250px',
       min: element.getAttribute('pane-min-size') || '200px'
   };
}

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 24 Jul 2019, 03:10 PM
Hello Ruben,

The pane's min and max values are applied only on resizing the pane. There is no option implemented for setting min-width on initialization. If you think having another way of setting the pane's min-width (on initialization instead of on resize) could be helpful in certain scenarios, you could submit a feature request in our Feedback Portal. If you do so please, elaborate more on how you envision both the current min option and the new one would work together, for instance in cases when different values are set to both options, should the current min option take precedence on resizing?

Regards,
Ivan Danchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Splitter
Asked by
Ruben
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or