This repository has been archived by the owner on Dec 2, 2021. It is now read-only.
v0.1.5
New features:
- Added ability to LayoutController to use the size of the child renderables to calculate its own size, by specifying
true
in the size option:
var layoutController = new LayoutController({
layout: ListLayout,
size: [undefined, true], // <-- calculate height based on child renderables
dataSource: [
new Surface({content: 'any content<br><br>', size: [undefined, true]});
new Surface({content: 'test', size: [undefined, 100]});
]
});
...
// getSize now returns the cumulative height of the child renderables
var size = layoutController.getSize();
// E.g. for adding to a scrollview
var scrollView = new FlexScrollView();
scrollView.push(layoutController);
scrollView.push(layoutController2);
Fixes:
- Fixed exception in
getSpec
when it was called before any content had been rendered - When resizing, the true-size of Surfaces was not always calculated correctly