ImageComponent: make the image left aligned again. makes it work

properly for CompactLayout
This commit is contained in:
Darshan Phaldesai
2026-02-22 17:51:16 -07:00
parent 63ddfb6cb8
commit cab57cc656

View File

@@ -147,7 +147,9 @@ Item {
Loader { Loader {
id: imageLoader id: imageLoader
anchors.fill: parent anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
active: !root.componentAttributes.animated && !_private.hideImage active: !root.componentAttributes.animated && !_private.hideImage
sourceComponent: Image { sourceComponent: Image {
@@ -163,7 +165,9 @@ Item {
Loader { Loader {
id: animatedImageLoader id: animatedImageLoader
anchors.fill: parent anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
active: (root?.componentAttributes.animated ?? false) && !_private.hideImage active: (root?.componentAttributes.animated ?? false) && !_private.hideImage
sourceComponent: AnimatedImage { sourceComponent: AnimatedImage {