Commit d062e220 authored by Carlos's avatar Carlos Committed by GitHub

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
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
exports[`PullToRefresh spec App shows PullToRefresh 1`] = ` exports[`PullToRefresh spec App shows PullToRefresh 1`] = `
<div <div
id="ptr-parent"
style={ style={
Object { Object {
"WebkitOverflowScrolling": "touch", "WebkitOverflowScrolling": "touch",
...@@ -14,6 +15,7 @@ exports[`PullToRefresh spec App shows PullToRefresh 1`] = ` ...@@ -14,6 +15,7 @@ exports[`PullToRefresh spec App shows PullToRefresh 1`] = `
} }
> >
<div <div
id="ptr-pull-down"
style={ style={
Object { Object {
"left": 0, "left": 0,
...@@ -30,6 +32,7 @@ exports[`PullToRefresh spec App shows PullToRefresh 1`] = ` ...@@ -30,6 +32,7 @@ exports[`PullToRefresh spec App shows PullToRefresh 1`] = `
</div> </div>
</div> </div>
<div <div
id="ptr-container"
style={ style={
Object { Object {
"WebkitOverflowScrolling": "touch", "WebkitOverflowScrolling": "touch",
......
...@@ -190,7 +190,7 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef ...@@ -190,7 +190,7 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
visibility: startInvisible ? "hidden" : "visible", visibility: startInvisible ? "hidden" : "visible",
}; };
return ( return (
<div style={contentStyle} ref={this.pullDownRef}> <div id="ptr-pull-down" style={contentStyle} ref={this.pullDownRef}>
{content} {content}
</div> </div>
); );
...@@ -211,9 +211,9 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef ...@@ -211,9 +211,9 @@ export class PullToRefresh extends React.Component<PullToRefreshProps, PullToRef
} }
return ( return (
<div style={containerStyle}> <div id="ptr-parent" style={containerStyle}>
{this.renderPullDownContent()} {this.renderPullDownContent()}
<div ref={this.containerRef} style={containerStyle}> <div id="ptr-container" ref={this.containerRef} style={containerStyle}>
{this.props.children} {this.props.children}
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment