Skip to content

Commit

Permalink
Page: fix in appbar collapsing handler
Browse files Browse the repository at this point in the history
[Issue] #1527
[Problem] Page: not existent scrollview instance in handler
 for appbar collapsing
[Solution]
 - added condition for checking scrollview existing

Signed-off-by: Tomasz Lukawski <t.lukawski@samsung.com>
  • Loading branch information
TomaszLukawskiSam committed Dec 4, 2020
1 parent 5929bc7 commit eb97ca3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/core/widget/core/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,9 @@
var scroller = self.getScroller(),
scrollview = ns.engine.getBinding(scroller);

scrollview.enableScrolling();
if (scrollview) {
scrollview.enableScrolling();
}
}, false);

header.addEventListener("appbarexpanded", function () {
Expand Down

0 comments on commit eb97ca3

Please sign in to comment.