I have a scroll-view
has one fa-surface
that contains the html for my page. The height for this `fa-surface' is dynamic since it can be larger or smaller depending on the width of the page.
I have set the fa-modifier
size to fa-size=[undefined, true]
(Read that true sets the height to the surfaces height).
This results in a page that will not scroll. If I put a fixed height in the fa-size
it will work, but that does me no good as the page is responsive and the height is dynamic.
Here is the code for the page:
<fa-app style="height:100%">
<fa-scroll-view fa-pipe-from="eventHandler">
<fa-view>
<fa-modifier fa-size="[undefined, true]">
<fa-surface fa-pipe-to="eventHandler">
Misc HTML...
</fa-surface>
</fa-modifier>
</fa-view>
</fa-scroll-view>
</fa-app>
Here is the simple controller for piping the events.
angular.module('newvitalwallApp')
.controller('MainCtrl', function ($scope, $famous) {
var EventHandler = $famous['famous/core/EventHandler'];
$scope.eventHandler = new EventHandler();
});
The live page is on a dev server here if your curious how it is behaving :
http://staging-sqtmp3dxdz.elasticbeanstalk.com/
I am at a loss as to why this is not working.. I am new to famous, but I have scoured the internet for answers on this and have found very little.
Thanks in advance for your input.