Place the stained glass underwater and Press F5 then Move to the stained glass you placed.
The screenshot is on version 1.7.2 which I ever used. This bug appears in any version including new snapshots. I tested it and it's still there. and kinda hard to take one.
Place the stained glass underwater and Press F5 then Move to the stained glass you placed.