Pro 3.4 ribbon shows image at different size for button loaded from separate add-in

1984
11
Jump to solution
01-14-2025 08:20 AM
JeffreyBurka
Occasional Contributor

I've got a pair of add-ins. The first (A) defines a tab, a group in that tab, and a set of buttons in the group. The second (B) defines a button and places it into the group defined in the first add-in. This all works fine in Pro 3.3.

I just upgraded a machine to 3.4 and found that the button inserted from add-in B looks like it's using the png defined in the smallImage attribute instead of the largeImage. See the attached image showing four buttons as expected and one at the wrong size.

Does the new 3.4 Ribbon have some other requirement or attribute I can set? Or is this a bug?

Tags (3)
11 Replies
LukeBettis
Emerging Contributor

Hi, we are seeing the same problem.

If it helps, I have attached a 'bad' png that does not render with ArcGIS Pro, and is falling back to rendering the small image. I have also attached one that does work.Good.pngBad.png. I would prefer to be able to use the one that fades to fully transparent, as the 'good' one has a white background and looks ugly.

Regards,

 

Luke

 

0 Kudos
JeffreyBurka
Occasional Contributor

Sorry -- I've had some crunch tasks to work on and lost track of this! I just checked and, indeed, my large png was set to a resolution of 300 instead of the more normal 72 or 96 for an on-screen image. I created a new png with the correct resolution, pasted in the pixels from the old one, and everything worked again.  What was interesting to me was that 3.3.x had no issues displaying the 300dpi png; the issue only showed up at 3.4.x.

Thanks!

0 Kudos