Skip to content

Commit 818ac6f

Browse files
committed
First try to fix responsive behaviour on iPhones and iPads
1 parent 868dfae commit 818ac6f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
<a name="0.6.1"></a>
2+
# [0.6.1]((https://github.com/swiety85/angular2gridster/compare/0.6.0...0.6.1)) (2017-07-10)
3+
4+
5+
### Bug Fixes
6+
7+
* **config:** fix default gridster options
8+
* **responsiveness:** fix responsive behaviour on iPhones and iPads
9+
10+
11+
112
<a name="0.6.0"></a>
213
# [0.6.0]((https://github.com/swiety85/angular2gridster/compare/0.5.3...0.6.0)) (2017-07-06)
314

demo/src/app/gridster/GridsterOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export class GridsterOptions {
4040
this.responsiveOptions = this.extendResponsiveOptions(config.responsiveOptions || []);
4141

4242
this.change = Observable.merge(
43-
Observable.of(this.getOptionsByWidth(window.outerWidth)),
43+
Observable.of(this.getOptionsByWidth(document.documentElement.clientWidth)),
4444
Observable.fromEvent(window, 'resize')
4545
.debounceTime(config.responsiveDebounce || 0)
46-
.map((event: Event) => this.getOptionsByWidth(window.outerWidth))
46+
.map((event: Event) => this.getOptionsByWidth(document.documentElement.clientWidth))
4747
)
4848
.distinctUntilChanged(null, (options: any) => options.minWidth);
4949
}

0 commit comments

Comments
 (0)