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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,485)