I never underestimate what uninformed inspectors might "push" but what you are doing sounds perfectly legal.
Get the instructions from the panel and highlight the line where it says it can be mounted either way.


Greg Fretwell