I expect that I am just missing something basic, but I cannot seem to get any famous surface to position itself correctly in the vertical plane when using any sort of layout (GridLayout or SequentialLayout).
If I create a GridLayout with 1 column and 3 rows, then add 3 surfaces, I would expect these 3 surfaces to share all available space, dividing it vertically into 3 equal sections and taking up the entire available width. However, instead, all three surfaces occupy the first grid position at the top of the available space. However, if I change it to 3 columns and 1 row, the grid correctly divides the available horizontal space into three equal parts and the three surfaces are properly assigned to the cells. However, even in that case, the surfaces are not properly sized vertically (I expect them to take up the entire available vertical space but they only take up the amount of space they would if, in CSS, I had set them to 'height: auto;'
I created a github project to make it easy for you to try it out if you wish and I published it as an app on meteor.com so you can see it in action here: http://meteor-angular-famous-demo.meteor.com
For reference, below is the code I am using:
HTML:
<head>
<title>Meteor-Angular-Famous GridLayout Test</title>
</head>
<body>
<fa-app ng-controller="mainController" id="app">
<fa-grid-layout fa-options="myGridLayoutOptions">
<fa-surface>
hello1
</fa-surface>
<fa-surface>
hello2
</fa-surface>
<fa-surface>
hello3
</fa-surface>
</fa-grid-layout>
</fa-app>
</body>
JS:
Meteor.startup(function () {
angular.module('taskMaster', ['angular-meteor', 'famous.angular'])
.controller('mainController', ['$scope', function($scope){
$scope.myGridLayoutOptions = {
dimensions: [1,3]
};
}]);
angular.bootstrap(document, ['taskMaster']);
});
Any assistance would be appreciated!!!