If dowel rods were used, you could arrive at the proper length needed by inserting them and trimming as necessary and when satisfied just paint them and when the paint is dry glue them in place with a good furniture glue.