Bug 471516 - Action buttons in InlineMessage escape from visual content area when text wraps
Summary: Action buttons in InlineMessage escape from visual content area when text wraps
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: Master
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords: qt6
: 470689 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-06-27 22:44 UTC by Nate Graham
Modified: 2023-10-07 01:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!