Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Logo component in geometrixx demo application

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.