Вот простейшая страница:
<html>
<head>
<script src="js/jquery.js"></script>
<script src="js/jquery.layout.js"></script>
<script src="js/jquery.layout.state.js"></script>
<script>
$(document).ready(function () {
$('body').layout({ applyDefaultStyles: true });
});
</script>
</head>
<body>
<div class="ui-layout-center">Center
<script>
// init instance var
var myLayout = $('body').layout();
// read layout 'options'
var is_west_resizable = myLayout.options.west.resizable;
var north_maxHeight = myLayout.options.north.maxSize;
var state = myLayout.state;
// get layout 'state'
var is_west_open = myLayout.state.west.isOpen;
var north_size = myLayout.state.north.size;
// current state
var isWestPaneOpen = !state.west.isClosed;
var isSouthPaneHidden = state.south.isHidden;
var isEastPaneSliding = state.east.isSliding;
// current dimensions
var westCurrentSize = state.west.size;
var westMinimumSize = state.west.minSize;
var containerInnerWidth = state.container.innerWidth;
var containerPaddingLeft = state.container.paddingLeft;
alert ( north_size );
</script>
</div>
<div class="ui-layout-north">North</div>
<div class="ui-layout-south">South</div>
<div class="ui-layout-east">East</div>
<div class="ui-layout-west">West</div>
</body>
</html>
Результат тот же - Undefined!
В чем ошибка?
Нормально выводятся только layout options.