mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-01-23 04:14:35 +08:00
update
This commit is contained in:
parent
6d0834c653
commit
dff77d3d4f
@ -48,6 +48,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollView{
|
ScrollView{
|
||||||
id:scroll_table
|
id:scroll_table
|
||||||
anchors.left: header_vertical.right
|
anchors.left: header_vertical.right
|
||||||
@ -83,6 +84,13 @@ Rectangle {
|
|||||||
if(column === item_loader.column){
|
if(column === item_loader.column){
|
||||||
item_loader.width = w
|
item_loader.width = w
|
||||||
}
|
}
|
||||||
|
if(column === item_loader.column-1){
|
||||||
|
let cellItem = table_view.itemAtCell(item_loader.column, item_loader.row)
|
||||||
|
if(cellItem){
|
||||||
|
let cellPosition = cellItem.mapToItem(scroll_table, 0, 0)
|
||||||
|
item_loader.x = table_view.contentX + cellPosition.x
|
||||||
|
}
|
||||||
|
}
|
||||||
return w
|
return w
|
||||||
}
|
}
|
||||||
return implicitColumnWidth(column)
|
return implicitColumnWidth(column)
|
||||||
@ -106,6 +114,13 @@ Rectangle {
|
|||||||
if(row === item_loader.row){
|
if(row === item_loader.row){
|
||||||
item_loader.height = h
|
item_loader.height = h
|
||||||
}
|
}
|
||||||
|
if(row === item_loader.row - 1){
|
||||||
|
var cellItem = table_view.itemAtCell(item_loader.column, item_loader.row)
|
||||||
|
if(cellItem){
|
||||||
|
var cellPosition = cellItem.mapToItem(scroll_table, 0, 0)
|
||||||
|
item_loader.y = table_view.contentY + cellPosition.y
|
||||||
|
}
|
||||||
|
}
|
||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
return implicitRowHeight(row)
|
return implicitRowHeight(row)
|
||||||
|
Loading…
Reference in New Issue
Block a user