Bug 471516

Summary: Action buttons in InlineMessage escape from visual content area when text wraps
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Nate Graham <nate>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, justin.zobel, notmart
Priority: NOR Keywords: qt6
Version First Reported In: Master   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2023-06-27 22:44:42 UTC
Run this test case in qmlscene-qt6 and them resize the window so that the text wraps:

import QtQuick
import QtQuick.Controls as QQC2
import org.kde.kirigami 2.20 as Kirigami

Item {
    width: 300
    height: 200

    Kirigami.InlineMessage {
        anchors {
            left: parent.left
            right: parent.right
            top: parent.top
        }
        text: "This is some text and oh my god it's soooooo long"
        visible: true
        showCloseButton: true
        actions: [
            QQC2.Action {
                icon.name: "edit-bomb"
                text: "I am here, click me"
                onTriggered: {
                    console.warn("Hello World")
                }
            }
        ]
    }
}
Comment 1 Nate Graham 2023-06-27 22:45:16 UTC
*** Bug 470689 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2023-10-07 01:23:55 UTC
Fixed by Ivan Tkachenko with https://invent.kde.org/frameworks/kirigami/-/commit/015af8738231e08a014ab0533ed1b95d90978e0a!