mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
use document.documentElement.clientWidth to get width
This commit is contained in:
parent
2c8e0316e0
commit
b66834c071
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ define(function (require) {
|
|||
describe('#read', function () {
|
||||
it('gets the proper dimensions for the element', function () {
|
||||
var dimensions = checker.read();
|
||||
var windowWidth = window.innerWidth;
|
||||
var windowWidth = document.documentElement.clientWidth;
|
||||
|
||||
expect(dimensions.w).to.equal(windowWidth);
|
||||
expect(dimensions.h).to.equal(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue