GUI Button somehow moves out of layer order.

I’m currently making a menu using the Unity 5 GUI system, and all was going ok, until suddenly one of the pieces of the menu for some reason, won’t properly stay in it’s layering order.

It’s very weird, and I’ve made a short video to show the problem

Basically the button layer gets moved behind the chain link layer (which is a GUI Image) for no apparent reason, but if I move it up, it pops back into place (in front) but if I position it where I want to, it pops back behind the chain link.

Does anyone know why this is happening and how I could fix it?

Edit: I’ve tried redoing this whole GUI menu, and the problem persists.

I found out what the problem was.

I had a gui button with text above the chain link piece, and the button that was causing the issue also had a text field. For some reason, unless the two text fields were touching, the layer order of the piece in between would be altered.

I deleted the two text fields (they’re only temporary anyway) and now the GUI layering is working properly.

Silly bug.