Skip to content

Commit

Permalink
宽度问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lucian55 committed Feb 16, 2019
1 parent 2d9946a commit 47606af
Show file tree
Hide file tree
Showing 4 changed files with 703 additions and 23 deletions.
5 changes: 1 addition & 4 deletions build/Dropdown.js
Expand Up @@ -156,10 +156,7 @@ var Dropdown = function (_React$Component) {
var overlayNode = this.getPopupDomNode();
var rootNode = _reactDom2["default"].findDOMNode(this);
if (rootNode.offsetWidth > overlayNode.offsetWidth) {
overlayNode.style.width = rootNode.offsetWidth + 'px';
} else {
//更改下拉内容时候不宽度不自动撑开bug
overlayNode.style.width = null;
overlayNode.style['min-width'] = rootNode.offsetWidth + 'px';
}
}
};
Expand Down

0 comments on commit 47606af

Please sign in to comment.