Logo component in geometrixx demo application | Community
Skip to main content
February 29, 2016
Solved

Logo component in geometrixx demo application

  • February 29, 2016
  • 1 reply
  • 887 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
February 29, 2016

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.