Don't shorten text too much in wxControl::Ellipsize().
If the allowed width is so small that nothing reasonable can fit it, overlap it. Ellipsized text must always contain "..." to indicate that it was shortened, it isn't acceptable to omit it. See #11360. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -179,11 +179,11 @@ public: // static functions
|
||||
|
||||
/**
|
||||
Replaces parts of the @a label string with ellipsis, if needed, so
|
||||
that it doesn't exceed @a maxWidth.
|
||||
|
||||
Note that this functions is guaranteed to always returns a string
|
||||
whose rendering on the given DC takes less than @a maxWidth pixels
|
||||
in horizontal.
|
||||
that it fits into @a maxWidth pixels if possible.
|
||||
|
||||
Note that this function does @em not guarantee that the returned string
|
||||
will always be shorter than @a maxWidth; if @a maxWidth is extremely
|
||||
small, ellipsized text may be larger.
|
||||
|
||||
@param label
|
||||
The string to ellipsize
|
||||
|
Reference in New Issue
Block a user