From 4c883a78a91c815fcaeaa46bc85447e8864fa5ef Mon Sep 17 00:00:00 2001 From: cnjsstong2 Date: Sat, 11 Jan 2014 15:29:53 -0500 Subject: [PATCH] Fix bug. --- src/directives/ng-panorama.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/ng-panorama.js b/src/directives/ng-panorama.js index ea7b6eb..870abda 100644 --- a/src/directives/ng-panorama.js +++ b/src/directives/ng-panorama.js @@ -74,7 +74,7 @@ angular.module('angular-panorama') function updateContainerHeight() { var minHeight=$window.innerHeight; if(iAttrs.minHeightOffset) { - minHeight+=iAttrs.minHeightOffset; + minHeight+=parseInt(iAttrs.minHeightOffset); } container.css('min-height',minHeight+'px'); }