In menu writer, you can set the width for the menu items in the menu bar.
the width of the menu that is generated will be (the width of the menu items + left and right padding) * the number of top level menu items you have.
what exactly is the error you are getting? Line number does not help with out the error text.