Fix hover action position when wide
Fix the positioning of the hover actions when the window is wide by using the content x pos
This commit is contained in:
@@ -42,7 +42,7 @@ QQC2.Control {
|
|||||||
leftPadding: 0
|
leftPadding: 0
|
||||||
rightPadding: 0
|
rightPadding: 0
|
||||||
|
|
||||||
x: delegate ? delegate.x + delegate.bubbleX : 0
|
x: delegate ? delegate.contentX + delegate.bubbleX : 0
|
||||||
y: delegate ? delegate.mapToItem(parent, 0, 0).y + delegate.bubbleY - height + Kirigami.Units.smallSpacing : 0
|
y: delegate ? delegate.mapToItem(parent, 0, 0).y + delegate.bubbleY - height + Kirigami.Units.smallSpacing : 0
|
||||||
width: delegate ? delegate.bubbleWidth : Kirigami.Units.gridUnit * 4
|
width: delegate ? delegate.bubbleWidth : Kirigami.Units.gridUnit * 4
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,13 @@ Item {
|
|||||||
*/
|
*/
|
||||||
property Item contentItem
|
property Item contentItem
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The x position of the content item.
|
||||||
|
*
|
||||||
|
* @note Used for positioning the hover actions.
|
||||||
|
*/
|
||||||
|
property real contentX: contentItemParent.x
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Whether the delegate should always stretch to the maximum available width.
|
* @brief Whether the delegate should always stretch to the maximum available width.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user