shineout 1.12.13-beta.3 → 1.12.13-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -242,11 +242,15 @@ function (_PureComponent) {
242
242
  height = _this$props3.height,
243
243
  onCollapse = _this$props3.onCollapse;
244
244
  var position = this.props.position;
245
- var windowHeight = _document.docSize.height;
246
- var rect = this.element.getBoundingClientRect();
247
- var bottom = height + rect.bottom;
248
- var canDropUp = rect.top > windowHeight - rect.bottom;
249
- if (bottom > windowHeight && canDropUp) position = 'drop-up';
245
+
246
+ if (!position) {
247
+ var windowHeight = _document.docSize.height;
248
+ var rect = this.element.getBoundingClientRect();
249
+ var bottom = height + rect.bottom;
250
+ var canDropUp = rect.top > windowHeight - rect.bottom;
251
+ if (bottom > windowHeight && canDropUp) position = 'drop-up';
252
+ }
253
+
250
254
  if (onCollapse) onCollapse(focus);
251
255
  this.setState({
252
256
  focus: focus,
package/css/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as utils from './utils'
3
3
 
4
4
  declare const __default: {
5
5
  utils: typeof utils,
6
- version: '1.12.13-beta.3'
6
+ version: '1.12.13-beta.4'
7
7
  }
8
8
 
9
9
  export default __default
package/css/index.js CHANGED
@@ -224,6 +224,6 @@ exports.Upload = _Upload.default;
224
224
  // Created by scripts/src-index.js.
225
225
  var _default = {
226
226
  utils: utils,
227
- version: '1.12.13-beta.3'
227
+ version: '1.12.13-beta.4'
228
228
  };
229
229
  exports.default = _default;