Very snug fit on my shelves.  Might end up scraping the paint on the bottom but will definitely stay in place.