Compare commits

..

2 Commits

Author SHA1 Message Date
zhuzichu fde1b5ff3a Merge branch 'main' of https://github.com/zhuzichu520/FluentUI 2024-01-05 11:36:53 +08:00
zhuzichu 53ba535abc update 2024-01-05 11:36:22 +08:00
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
}