#3637: [preferences/FileTypes] menuField text is clipped(easy) -----------------------------------+---------------------------------------- Reporter: chico | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: Preferences/FileTypes | Version: R1/Development Keywords: | Blockedby: Platform: All | Blocking: -----------------------------------+---------------------------------------- Comment(by jackburton): BMenuItem::DrawContent uses TruncateString already, but probably it's never triggered, since the width of the menuitem is already set to the item full string width. {{{ // truncate if needed // TODO: Actually, this is still never triggered if (fBounds.Width() > labelWidth) fSuper->DrawString(fLabel); else { char *truncatedLabel = new char[strlen(fLabel) + 4]; TruncateLabel(fBounds.Width(), truncatedLabel); fSuper->DrawString(truncatedLabel); delete[] truncatedLabel; } }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/3637#comment:8> Haiku <http://dev.haiku-os.org> Haiku - the operating system.