When in creative, if you press F11 to make the game go from windowed to fullscreen or vice versa, the inventory will reset your position in that section and send you back to the top of the menu instead of keeping your place where you scrolled to (for example, scrolling down in the Decoration Blocks tab then pressing F11 will send you back to the top).
Thank you for your report!
We're tracking this issue as MC-169746, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki