Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Theadd/react-panels
Browse files Browse the repository at this point in the history
  • Loading branch information
Theadd committed May 3, 2015
2 parents 1e52273 + 7f7706e commit b7c02bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jsx/panel.js
Expand Up @@ -47,6 +47,10 @@ var FloatingPanel = React.createClass({
dragEnd: function() {
delete this.panelBounds;
window.removeEventListener('dragover', this.dragOver);
if (this.props.onBoundsChange) {
var height=this.getDOMNode().offsetHeight;
this.props.onBoundsChange({left:this.state.left, top:this.state.top, width:this.state.width, height:height});
}
},

dragOver: function(e) {
Expand Down

0 comments on commit b7c02bb

Please sign in to comment.