I am developing an auto-generating I/O chassis graphic using a flex repeater. Essentially I load up the module part numbers in an array, and the flex repeater reads the array and adds instances according to the part number. This part is all working well.
Now I want to highlight any modules with errors, by putting an alarm border around them.
I have done this by creating a style class which contains a 2px border, and dynamically applying this style class to the drawing of the module according to the alarm status and priority. This also works, however, when it applies the border, the picture needs to shrink to fit inside the border, and then that module looks disproportionate to the rest of the modules.
Is there a way to have the border overlay the object, instead of shrinking it to fit inside? I had thought that adding padding of -2px might do the trick, but that doesn’t seem to have worked. Adding a margin of -2px kind of does - the drawing no longer shrinks, and I see the border top and bottom - but I don’t see it on the sides because it’s hidden behind the modules either side.
Any ideas?

