Skip to main content
Participant
May 28, 2024
Question

Drop shadow not included in width and height of asset in adobe XD

  • May 28, 2024
  • 1 reply
  • 304 views

Hello,

I am having an issue where the drop shadow in an asset is not included in the Width and Height of the asset (the shadow makes it bigger).

 

See below, XD highlights the green outline as the size, but it has a black drop shadow to the bottom right, and white to the top left. The asset exports correctly to a larger object with the shadows included.

 

This is an issue as I need an accurate X and Y position to use the assets in programming external firmware.

 

Is there a way to set the asset up so the drop shadow becomes the outside perimeter?

 

thank you. 

This topic has been closed for replies.

1 reply

Community Expert
May 28, 2024

If you place an exported PNG where the button is exactly and group them, set the PNG opacity to zero, then turn into a component, you can get what you want - although this is not really a proper solution 🙁

Participant
May 30, 2024

Thanks for your help Kenneth - the work around achieved the result I needed.