cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudosaurus
Post Prodigy
Post Prodigy

Left align conditional images in gallery?

Hello,

 

Not sure if this is possible but is it possible to left align some conditional images I have in my PowerApp gallery?

 

These Hazard Classifcation symbols on the right are displayed based on a toggle in a list form on another screen.

 

Where I use this formula to display the images and this works correcty:

If(
   ThisItem.OxidisingField,
   Oxidising
)

sudosaurus_0-1643291505383.png

What I want to do is that for example on the "fairy liquid" item, is to have the symbol for that one to be displayed left aligned rather than displaying sporadically. Is this possible?

 

Thanks,

Chris

8 REPLIES 8
StalinPonnusamy
Super User
Super User

Hi @sudosaurus 

 

I recommend having a container within the gallery and displaying images within the container. Use relative position.

 

StalinPonnusamy_0-1643294817732.png


Thanks,
Stalin - Learn To Illuminate

sudosaurus
Post Prodigy
Post Prodigy

Hi @StalinPonnusamy 

 

OK, I've done that but still the sporadic images are still not displaying from the left on some of the items...

sudosaurus_0-1643299500852.png

 

Hi @sudosaurus 

 

How are you displaying images? What control and source?

 

This helps for me to replicate from my end.

 

sudosaurus
Post Prodigy
Post Prodigy

@StalinPonnusamy 

I inserted an image control into the container:

sudosaurus_0-1643301709530.png

This image is called "Oxidising".

Hi @sudosaurus 

 

We need to adjust the image location (Position) based on other previous images. Looks like each item has different images visibility.

 

Set Image 2 X position to

Image1.X+Image1.Width

Set Image 3 X position to

Image2.X+Image2.Width

 

StalinPonnusamy_0-1643304154255.png

 

sudosaurus
Post Prodigy
Post Prodigy

@StalinPonnusamy 

Hmm, when I do that, it changes the size of the image as below...

sudosaurus_0-1643305517857.png

 

Hi @sudosaurus 

 

It shouldn't be since we are changing the image X position. Size never changes on this approach since we are not changing the width or height.

 

Hi @sudosaurus 

 


Please let us know if anything needs on your post. We can help with this.

Please mark the post as Solved If I have answered your question.
Please give it a Thumbs Up if you find the suggestion helpful

Thanks,
Stalin - Learn To Illuminate

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,673)