mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 20:18:22 +08:00
fix: dropdown position incorrect caused by window size change #184
This commit is contained in:
parent
d9690435c7
commit
3bebbb2aab
@ -27,7 +27,6 @@ export default {
|
||||
monitorBufferTime: PropTypes.number.def(50),
|
||||
monitorWindowResize: PropTypes.bool.def(false),
|
||||
disabled: PropTypes.bool.def(false),
|
||||
visible: PropTypes.bool.def(false),
|
||||
},
|
||||
data () {
|
||||
this.aligned = false
|
||||
@ -50,7 +49,7 @@ export default {
|
||||
const prevProps = this.prevProps
|
||||
const props = this.$props
|
||||
let reAlign = false
|
||||
if (!props.disabled && props.visible) {
|
||||
if (!props.disabled) {
|
||||
const source = this.$el
|
||||
const sourceRect = source ? source.getBoundingClientRect() : null
|
||||
|
||||
|
@ -256,9 +256,9 @@ export default {
|
||||
key='popup'
|
||||
ref='alignInstance'
|
||||
monitorWindowResize
|
||||
disabled={!visible}
|
||||
align={align}
|
||||
onAlign={this.onAlign}
|
||||
visible={visible}
|
||||
>
|
||||
<PopupInner
|
||||
{...popupInnerProps}
|
||||
|
Loading…
Reference in New Issue
Block a user