Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
react-pull-to-refresh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jason.yap
react-pull-to-refresh
Commits
d062e220
Commit
d062e220
authored
Apr 28, 2019
by
Carlos
Committed by
GitHub
Apr 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12 from mattmogford/fixes/ids-for-main-divs
Added id’s to main div’s for css access in certain situations
parents
80e73164
2d614342
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
__tests__/components/__snapshots__/PullToRefresh.spec.tsx.snap
...ts__/components/__snapshots__/PullToRefresh.spec.tsx.snap
+3
-0
src/components/PullToRefresh.tsx
src/components/PullToRefresh.tsx
+3
-3
No files found.
__tests__/components/__snapshots__/PullToRefresh.spec.tsx.snap
View file @
d062e220
...
...
@@ -2,6 +2,7 @@
exports[`PullToRefresh spec App shows PullToRefresh 1`] = `
<div
id="ptr-parent"
style={
Object {
"WebkitOverflowScrolling": "touch",
...
...
@@ -14,6 +15,7 @@ exports[`PullToRefresh spec App shows PullToRefresh 1`] = `
}
>
<div
id="ptr-pull-down"
style={
Object {
"left": 0,
...
...
@@ -30,6 +32,7 @@ exports[`PullToRefresh spec App shows PullToRefresh 1`] = `
</div>
</div>
<div
id="ptr-container"
style={
Object {
"WebkitOverflowScrolling": "touch",
...
...
src/components/PullToRefresh.tsx
View file @
d062e220
...
...
@@ -190,7 +190,7 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
visibility
:
startInvisible
?
"
hidden
"
:
"
visible
"
,
};
return
(
<
div
style=
{
contentStyle
}
ref=
{
this
.
pullDownRef
}
>
<
div
id=
"ptr-pull-down"
style=
{
contentStyle
}
ref=
{
this
.
pullDownRef
}
>
{
content
}
</
div
>
);
...
...
@@ -211,9 +211,9 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
}
return
(
<
div
style=
{
containerStyle
}
>
<
div
id=
"ptr-parent"
style=
{
containerStyle
}
>
{
this
.
renderPullDownContent
()
}
<
div
ref=
{
this
.
containerRef
}
style=
{
containerStyle
}
>
<
div
id=
"ptr-container"
ref=
{
this
.
containerRef
}
style=
{
containerStyle
}
>
{
this
.
props
.
children
}
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment