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

splitter.min(pane) not working

2 Answers 79 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Dino
Top achievements
Rank 1
Dino asked on 08 Nov 2012, 09:48 PM
Hello,

I need to get the minimum size of a given pane in the splitter. I see the following behavior...

When I call splitter.min(pane) it enters the following method in kendo.all.js:

function panePropertyAccessor(propertyName, triggersResize) {
return function(pane, value) {
var paneConfig = $(pane).data(PANE);

if (arguments.length == 1) {
return paneConfig[propertyName];
}

paneConfig[propertyName] = value;

if (triggersResize) {
var splitter = this.element.data("kendoSplitter");
splitter.trigger(RESIZE);
}
};
}


In this case, propertyName is 'min', however, in the paneConfig the property is called 'minSize', and therefore this returns undefined.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 09 Nov 2012, 03:28 PM
Hello Dino,

There was a problem with the Kendo UI Splitter's MVC wrapper, which has a MinSize property. This property should be serialized as min to the client initialization script, but was serialized as minSize instead, so it was not applied. This is fixed now and changes will take effect in the Q3 2012 release, due next week. I am not sure your problem is caused by the same bug, but generally, there is no other reference for minSize in the Splitter's current Javascript code.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dino
Top achievements
Rank 1
answered on 09 Nov 2012, 03:30 PM
Ok great! Ya that sounds like it would cause this issue. I look forward to the Q32012 release! Thanks!
Tags
Splitter
Asked by
Dino
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Dino
Top achievements
Rank 1
Share this question
or