NEZ-2886 fix:Agents新建时,首次选择Data center下拉框出现闪动
This commit is contained in:
@@ -346,7 +346,6 @@ export default {
|
||||
if (!positionShow) {
|
||||
return
|
||||
}
|
||||
console.log(pen)
|
||||
this.chartParams = {
|
||||
...pen.data.tooltip,
|
||||
unit: this.params.unit,
|
||||
@@ -366,7 +365,7 @@ export default {
|
||||
} else {
|
||||
this.position.left = ePosition.layerX - 20 - 400
|
||||
}
|
||||
if (boxHeight > (ePosition.layerY + 300)) {
|
||||
if (boxHeight / 2 > ePosition.layerY) {
|
||||
this.position.top = ePosition.layerY + 50
|
||||
} else {
|
||||
this.position.top = ePosition.layerY - 300
|
||||
|
||||
Reference in New Issue
Block a user