Skip to content

Commit

Permalink
drag around examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadzhi Kharkharov committed May 18, 2015
1 parent 52b394b commit 902da88
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/02 Drag Around/Custom Drag Layer/Box.js
Expand Up @@ -3,9 +3,9 @@ import shouldPureComponentUpdate from './shouldPureComponentUpdate';

const styles = {
border: '1px dashed gray',
padding: '0.5rem',
display: 'inline-block',
cursor: 'move'
backgroundColor: 'white',
padding: '0.5rem 1rem',
cursor: 'move',
};

export default class Box {
Expand Down
4 changes: 2 additions & 2 deletions examples/02 Drag Around/Custom Drag Layer/index.js
Expand Up @@ -46,14 +46,14 @@ export default class DragAroundCustomDragLayer extends Component {
<input type='checkbox'
checked={snapToGridWhileDragging}
onChange={this.handleSnapToGridWhileDraggingChange} />
Snap to grid while dragging
<small>Snap to grid while dragging</small>
</label>
<br />
<label>
<input type='checkbox'
checked={snapToGridAfterDrop}
onChange={this.handleSnapToGridAfterDropChange} />
Snap to grid after drop
<small>Snap to grid after drop</small>
</label>
</p>
</div>
Expand Down
5 changes: 3 additions & 2 deletions examples/02 Drag Around/Naive/Box.js
Expand Up @@ -5,8 +5,9 @@ import { DragSource } from 'react-dnd';
const style = {
position: 'absolute',
border: '1px dashed gray',
padding: '0.5rem',
cursor: 'move'
backgroundColor: 'white',
padding: '0.5rem 1rem',
cursor: 'move',
};

const boxSource = {
Expand Down
2 changes: 1 addition & 1 deletion examples/02 Drag Around/Naive/index.js
Expand Up @@ -46,7 +46,7 @@ export default class DragAroundNaive extends Component {
<input type='checkbox'
checked={hideSourceOnDrag}
onChange={this.handleHideSourceClick} />
Hide the source item while dragging
<small>Hide the source item while dragging</small>
</label>
</p>
</div>
Expand Down

0 comments on commit 902da88

Please sign in to comment.