Copy link to clipboard
Copied
Here is an example of the problem:
Here's my button. It is 214 x 110px...
Until I export as Design asset... and it becomes: 248x128px
Huh?
Copy link to clipboard
Copied
If I draw a simple rectangle to the same size, it exports fine...
The box on the right is the actual (wrong) size being saved out:
I wondered if it was a shadow issue (XD should allow for this in calculating!!!)... but if I put the real size button within the wrong size, the shadow is miles away so it doesn't make sense that it would add on all those extra pixels.
So I took the shadow off as a test, and it saved at correct size.
This is pretty rubbish when you need to export assets for developers.
So what's the work around?
Do I have to turn off the shadows for every single button and then export and take each one into Photoshop at the correct size?
This is not good enough.
Copy link to clipboard
Copied
Hi Pixelysian​, one work-around would be to mask the button with that rectangle (overlap them, bring the rectangle to front, select them both, right click mask with shape).
HTH,
Vlad
Copy link to clipboard
Copied
Thanks - I'll give that a go - I did wonder that but it's a laborious task with the amount of buttons I have (and they're all symbol assets)!
It's really quite annoying though that XD don't allow for the shadow in the programme... it's misleading and unhelpful.
Copy link to clipboard
Copied
Very helpful Vlad - thanks!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now