Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
fix(IE8): fix adjust height in IE8
Browse files Browse the repository at this point in the history
use fallback to document.documentElement.clientHeight for height of window
  • Loading branch information
Philipp Burgmer committed Apr 8, 2014
1 parent 5df753d commit 60f9aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/w11k-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ angular.module('w11k.select').directive('w11kSelect', [

var offset = content.getBoundingClientRect();

var windowHeight = $window.innerHeight;
var windowHeight = $window.innerHeight || $window.document.documentElement.clientHeight;
var maxHeight = (windowHeight - offset.top) - 60;

var minHeightFor3Elements = 93;
Expand Down

0 comments on commit 60f9aed

Please sign in to comment.