Merge pull request #229 in YR/star-web-components from dock to master

* commit '69686ed3488c83c833b0bf456bec8b0e75d5244a':
  BUG: #154710 - 解决Dock栏因为受主屏容器图标折返拖拽动作的影响,导致最右图标消失问题
This commit is contained in:
汪昌棋 2023-01-13 14:47:04 +08:00
commit 994d374615
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(() => {