Commit 0f7e1063 authored by Alexander Stippich's avatar Alexander Stippich

fix file browser delegate sizing

parent bc33a3a6
......@@ -141,11 +141,12 @@ FocusScope {
}
}
cellWidth: elisaTheme.gridDelegateWidth
cellHeight: elisaTheme.gridDelegateHeight
cellWidth: Math.floor(availableWidth / Math.max(Math.floor(availableWidth / elisaTheme.gridDelegateWidth), 2))
cellHeight: elisaTheme.gridDelegateHeight +
(secondaryLabelSize.boundingRect.height - secondaryLabelSize.boundingRect.y)
delegate: GridBrowserDelegate {
width: contentDirectoryView.cellWidth
width: elisaTheme.gridDelegateWidth
height: contentDirectoryView.cellHeight
focus: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment