[media]
Environment
Java Version 8 (build 1.8.0_171-b11)
Windows 10 operation system.
16 GB ram
GTX 1050 NVIDIA dedicated graphics card.
Java Version 8 (build 1.8.0_171-b11)
Windows 10 operation system.
16 GB ram
GTX 1050 NVIDIA dedicated graphics card.
This is an intended behaviour, because you're technically just putting water sources in blocks where the glass panes in. It doesn't care which direction you're putting them in.
Also, this is a duplicate of "MC-127237 - Water can go through glass panes". Please use the search function in the future to see if the bugs have already been reported before.