Skip to content

Commit

Permalink
feat(android): refreshControl offset property
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Jan 20, 2024
1 parent 49ef22e commit 9097e6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ public void handleCreationDict(KrollDict properties)
}
if (properties.containsKeyAndNotNull("offset")) {
KrollDict offset = properties.getKrollDict("offset");
offsetStart = new TiDimension(TiConvert.toInt(offset.get("top"), 0), TiDimension.TYPE_TOP)
offsetStart = new TiDimension(TiConvert.toInt(offset.get("start"), 0), TiDimension.TYPE_TOP)
.getAsPixels(this.swipeRefreshLayout);
offsetEnd = new TiDimension(TiConvert.toInt(offset.get("bottom"), 80), TiDimension.TYPE_BOTTOM)
offsetEnd = new TiDimension(TiConvert.toInt(offset.get("end"), 80), TiDimension.TYPE_BOTTOM)
.getAsPixels(this.swipeRefreshLayout);
}
}
Expand Down
8 changes: 4 additions & 4 deletions apidoc/Titanium/UI/RefreshControl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ examples:
name: refreshOffset
summary: Offset of the refresh control view.
properties:
- name: top
summary: Top padding of the map view.
- name: start
summary: The offset from the top of this view at which the progress spinner should appear.
type: Number
- name: bottom
summary: Bottom padding of the map view.
- name: end
summary: The offset from the top of this view at which the progress spinner should come to rest after a successful swipe gesture.
type: Number

0 comments on commit 9097e6a

Please sign in to comment.