Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Logo component in geometrixx demo application

Avatar

Former Community Member

When I go to design mode and update the logo image, the image displayed is quite small as compared to its original size. Also if I clear the new uploaded logo image, then it displays the default logo rather than displaying a blank image. Can anyone let me know how is that working? 

 

I have also gone though the link below, but didn't find my answer:

https://helpx.adobe.com/experience-manager/using/creating-logo.html

1 Accepted Solution

Avatar

Correct answer by
Level 10

Look at the code here: 

http://localhost:4502/crx/de/index.jsp#/libs/foundation/components/logo/img.GET.java

 // get style and set constraints
        image.set(Image.PN_MIN_WIDTH, c.properties.get("minWidth", ""));
        image.set(Image.PN_MIN_HEIGHT, c.properties.get("minHeight", ""));
        image.set(Image.PN_MAX_WIDTH, c.properties.get("maxWidth", ""));
        image.set(Image.PN_MAX_HEIGHT, c.properties.get("maxHeight", ""));

 

The image is driven by these values. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Look at the code here: 

http://localhost:4502/crx/de/index.jsp#/libs/foundation/components/logo/img.GET.java

 // get style and set constraints
        image.set(Image.PN_MIN_WIDTH, c.properties.get("minWidth", ""));
        image.set(Image.PN_MIN_HEIGHT, c.properties.get("minHeight", ""));
        image.set(Image.PN_MAX_WIDTH, c.properties.get("maxWidth", ""));
        image.set(Image.PN_MAX_HEIGHT, c.properties.get("maxHeight", ""));

 

The image is driven by these values.