Commit 46f9f82d authored by Prince Gupta's avatar Prince Gupta 💬 Committed by Jean-Baptiste Kempf
Browse files

qml/gridview: implement displayMarginEnd property

parent 0e0f99db
......@@ -38,6 +38,9 @@ NavigableFocusScope {
property int horizontalSpacing: VLCStyle.column_margin_width
property int verticalSpacing: VLCStyle.column_margin_width
property int displayMarginEnd: 0
onDisplayMarginEndChanged: flickable.layout(false)
readonly property int _effectiveCellWidth: cellWidth + horizontalSpacing
readonly property int _effectiveCellHeight: cellHeight + verticalSpacing
......@@ -204,7 +207,7 @@ NavigableFocusScope {
var myContentY = flickable.contentY - root.headerHeight - topMargin
var contentYWithoutExpand = myContentY
var heightWithoutExpand = flickable.height
var heightWithoutExpand = flickable.height + root.displayMarginEnd
if (root.expandIndex !== -1) {
if (myContentY >= expandItem.y && myContentY < expandItem.y + _expandItemVerticalSpace)
contentYWithoutExpand = expandItem.y
......
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