Skip to content

Commit 6c7a241

Browse files
author
vakrilov
committed
Use current page to get swipeItem
1 parent f411cf2 commit 6c7a241

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

demo/package.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
{
2-
"nativescript": {
3-
"id": "org.nativescript.floatingactionbutton",
4-
"tns-android": {
5-
"version": "1.7.1"
6-
},
7-
"tns-ios": {
8-
"version": "2.3.0"
9-
}
10-
},
11-
"dependencies": {
12-
"nativescript-floatingactionbutton": "file:..",
13-
"tns-core-modules": "latest"
14-
}
15-
}
2+
"nativescript": {
3+
"id": "org.nativescript.floatingactionbutton",
4+
"tns-android": {
5+
"version": "2.5.0"
6+
},
7+
"tns-ios": {
8+
"version": "2.5.0"
9+
}
10+
},
11+
"dependencies": {
12+
"nativescript-floatingactionbutton": "file:..",
13+
"tns-core-modules": "latest"
14+
},
15+
"devDependencies": {
16+
"babel-traverse": "6.24.1",
17+
"babel-types": "6.24.1",
18+
"babylon": "6.17.0",
19+
"lazy": "1.0.11"
20+
}
21+
}

fab-common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var FloatingActionButton = (function (_super) {
4040
var fab = this;
4141
var viewToAttachTo = this.hideOnSwipeOfView;
4242
if (viewToAttachTo !== undefined) {
43-
var swipeItem = frameModule.topmost().getViewById(viewToAttachTo);
43+
var swipeItem = this.page.getViewById(viewToAttachTo);
4444
var animationType = (this.swipeAnimation) ? this.swipeAnimation : "slideDown"
4545

4646
if (swipeItem !== undefined) {

0 commit comments

Comments
 (0)