BUG: #154710 - 解决Dock栏因为受主屏容器图标折返拖拽动作的影响,导致最右图标消失问题

This commit is contained in:
luojiahao 2023-01-13 10:06:13 +08:00
parent f5b2744366
commit 69686ed348
2 changed files with 2 additions and 1 deletions

View File

@ -627,6 +627,7 @@ export default class StarDock extends StarBaseElement {
this._dnd.child.container.classList.remove('dragging')
}
this._dragChild = undefined
this.synchronise()
}

View File

@ -2527,7 +2527,7 @@ export class GaiaContainer extends StarBaseElement {
const elementHeight = this._dnd.child.element.offsetHeight
const elementWidth = this._dnd.child.element.offsetWidth
if (centerY > this.offsetHeight) {
if (centerY > this.offsetHeight + this.top) {
this.dragPosition = 'outter'
if (!this.throttle) {
this.throttle = window.setTimeout(() => {