Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
// First, line 121 not only sets the spacing between menu items, it is setting the size of the whole menu item // The line that is provided in the file currently does the following: // 1. Sets the width of the item to be the width of the text (this.item_txt.textWidth) // 2. Adds spacing that is double the width of the font size chosen in the xml (XMLMenuItem.itemStyle.size * 2) this.item_txt._width = this.item_txt.textWidth + (XMLMenuItem.itemStyle.size * 2); // No spacing between menu items this.item_txt._width = this.item_txt.textWidth; // Keep current spacing, but add a little more (still based off of chosen font size in xml) this.item_txt._width = this.item_txt.textWidth + (XMLMenuItem.itemStyle.size * 3); // Choose a fixed width spacing of 10 pixels on each size of the menu item (20 pixels total) this.item_txt._width = this.item_txt.textWidth + 20;
This paste will be private.
From the Design Piracy series on my blog: