Skip to content

Commit

Permalink
Add attribute min-height-offset .
Browse files Browse the repository at this point in the history
  • Loading branch information
cnjsstong committed Jan 11, 2014
1 parent 08c26bd commit 490429f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion angular-panorama.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Angular Panorama - Mimic Windows Phone's Panorama UI control.
* @version v0.1.3 - 2014-01-03
* @version v0.1.3 - 2014-01-11
* @link http://cnjsstong2.github.com/angular-panorama
* @author Tong Shen <[email protected]>
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down Expand Up @@ -305,6 +305,11 @@ angular.module('angular-panorama')
function resize() {
updateContainerWidth();
updateSlidePosition();
var minHeight=$window.innerHeight;
if(iAttrs.minHeightOffset) {
minHeight+=iAttrs.minHeightOffset;
}
container.css('min-height',minHeight+'px');
}

function updateContainerWidth() {
Expand Down
Loading

0 comments on commit 490429f

Please sign in to comment.