function calculatePosition() {

                // calculate the position out of a number of options
                if (config.positionFunction) {
                    position = config.positionFunction();
                } else if (config.positionCode !== undefined) {
                    var code = config.positionCode,
                        size = (config.orientation == 'horizontal' ? splitter$.width() : config.heightFunction());

                    // applying the 0, 1/4, 1/3, 1/2 ... proportions
                    var positionCodeArr = code.split('/');
                    position = positionCodeArr.length > 1 ? Math.round(size * positionCodeArr[0] / positionCodeArr[1]) : 0;

                    if (position > 0) {
                        position -= 4; // half the splitter width
                    }
                }
                return position;
            }
// Calculates the initial position of the splitter, and also on resizing events
Calculates the initial position of the splitter, and also on resizing events
Calculates the initial position of the splitter and also on resizing events
function calculatePosition() {
                if (config.positionFunction) {
                    position = config.positionFunction();
                } else if (config.positionCode !== undefined) {
                    var code = config.positionCode,
                        size = (config.orientation == 'horizontal' ? splitter$.width() : config.heightFunction());
                    var positionCodeArr = code.split('/');
                    position = positionCodeArr.length > 1 ? Math.round(size * positionCodeArr[0] / positionCodeArr[1]) : 0;
                    if (position > 0) {
                        position -= 4; 
                    }
                }
                return position;
            }
function calculatePosition ( ) { if ( config . positionFunction ) { position = config . positionFunction ( ) ; } else if ( config . positionCode !== undefined ) { var code = config . positionCode , size = ( config . orientation == 'horizontal' ? splitter$ . width ( ) : config . heightFunction ( ) ) ; var positionCodeArr = code . split ( '/' ) ; position = positionCodeArr . length > 1 ? Math . round ( size * positionCodeArr [ 0 ] / positionCodeArr [ 1 ] ) : 0 ; if ( position > 0 ) { position -= 4 ; } } return position ; }
Calculates the initial position of the splitter, and also on resizing events
Calculates the initial position of the splitter and also on resizing events
// calculate the position out of a number of options // applying the 0, 1/4, 1/3, 1/2 ... proportions // half the splitter width