This commit is contained in:
zhuzichu 2024-01-05 11:36:22 +08:00
parent 833a8217f4
commit 53ba535abc
2 changed files with 8 additions and 8 deletions

View File

@ -99,12 +99,12 @@ FluTextBox{
loadData()
if(d.flagVisible){
var pos = control.mapToItem(null, 0, 0)
if(d.window.height>pos.y+control.height+container.height){
if(window.height>pos.y+control.height+container.implicitHeight){
control_popup.y = control.height
} else if(pos.y>container.height){
control_popup.y = -container.height
} else if(pos.y>container.implicitHeight){
control_popup.y = -container.implicitHeight
} else {
popup.y = d.window.height-(pos.y+container.height)
control_popup.y = window.height-(pos.y+container.implicitHeight)
}
control_popup.visible = true
}

View File

@ -98,12 +98,12 @@ FluTextBox{
loadData()
if(d.flagVisible){
var pos = control.mapToItem(null, 0, 0)
if(window.height>pos.y+control.height+container.height){
if(window.height>pos.y+control.height+container.implicitHeight){
control_popup.y = control.height
} else if(pos.y>container.height){
control_popup.y = -container.height
} else if(pos.y>container.implicitHeight){
control_popup.y = -container.implicitHeight
} else {
popup.y = window.height-(pos.y+container.height)
control_popup.y = window.height-(pos.y+container.implicitHeight)
}
control_popup.visible = true
}