Windows Automatic Resizing

Hello! I've been working on a game with transparent borders to keep the player from doing things that are not logical. Everytime I add in a texture to the borders they are totally fine, but if I remove the texture or use a transparent one, the borders resize or completely disappear. I'm using DnD right now . If someone knows why things are resizing magically please tell me because this is very annoying. Edit: Sometimes the borders stop working completely as well.