Any time a door is large enough to really make it hard to preserve a damp edge, I am going to paint the panels to start with and afterwards go back and paint the rails. It can be difficult to open / near loads of the cabinets in my apartment. http://finnpvwla.actoblog.com/1973253/the-fact-about-what-kind-of-paint-do-you-use-for-cabinets-that-no-one-is-suggesting