Welcome to the new and improved Building Code Forum. We appreciate you being here and hope that you are getting the information that you need concerning all codes of the building trades. This is a free forum to the public due to the generosity of the Sawhorses, Corporate Supporters and Supporters who have upgraded their accounts. If you would like to have improved access to the forum please upgrade to Sawhorse by first logging in then clicking here: Upgrades
Since this is a toilet partition - why won't this work - see picture from 2017 ICC ANSI.. ALSo BTW, the door swing will not work as you fail to provide adequate space beyond the door for maneuvering .