mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-09 08:15:41 +08:00
update
This commit is contained in:
parent
833a8217f4
commit
53ba535abc
@ -99,12 +99,12 @@ FluTextBox{
|
|||||||
loadData()
|
loadData()
|
||||||
if(d.flagVisible){
|
if(d.flagVisible){
|
||||||
var pos = control.mapToItem(null, 0, 0)
|
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
|
control_popup.y = control.height
|
||||||
} else if(pos.y>container.height){
|
} else if(pos.y>container.implicitHeight){
|
||||||
control_popup.y = -container.height
|
control_popup.y = -container.implicitHeight
|
||||||
} else {
|
} else {
|
||||||
popup.y = d.window.height-(pos.y+container.height)
|
control_popup.y = window.height-(pos.y+container.implicitHeight)
|
||||||
}
|
}
|
||||||
control_popup.visible = true
|
control_popup.visible = true
|
||||||
}
|
}
|
||||||
|
@ -98,12 +98,12 @@ FluTextBox{
|
|||||||
loadData()
|
loadData()
|
||||||
if(d.flagVisible){
|
if(d.flagVisible){
|
||||||
var pos = control.mapToItem(null, 0, 0)
|
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
|
control_popup.y = control.height
|
||||||
} else if(pos.y>container.height){
|
} else if(pos.y>container.implicitHeight){
|
||||||
control_popup.y = -container.height
|
control_popup.y = -container.implicitHeight
|
||||||
} else {
|
} else {
|
||||||
popup.y = window.height-(pos.y+container.height)
|
control_popup.y = window.height-(pos.y+container.implicitHeight)
|
||||||
}
|
}
|
||||||
control_popup.visible = true
|
control_popup.visible = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user