Issue 2819: Need more aggressive eliding algorithms for omnibox
http://code.google.com/p/chromium/issues/detail?id=2819

New issue report by [EMAIL PROTECTED]:
See <b\1222425>

As noted in the following comment of pkasting, the current eliding
algorithm of the AutocompletePopup class is very conservative. We need to
implement more aggressive one which can handle the following case as well.

> The basic problem is, we elide if the current segment doesn't fit in
(remaining space - ellipsis width).  This is too conservative.  Imagine the
following cases with an available width of 6 characters (monospaced):
> Segments: "aaaaaa"
> Segments: "aaaaa", "b"
> Segments: "aaaa", "bb"
> Segments: "aaaa", "b", "b"
> Now pretend that the width of the ellipsis is the width of three
characters.  In each of the above cases, we elide the first segment, but a
correct algorithm would draw all the segments with no eliding.  I think the
fix is, in the current code where we see that the run won't fit in
(remaining space - ellipsis width), we call a function (perhaps this could
be factored in such a way as to make it the same as the current function)
that instead tries to draw this run and all the remaining ones in the
remaining width _without_ subtracting the ellipsis width or eliding, and
simply returns false if one of them overruns.  Then in the caller, if the
function returned false, go ahead and elide as we currently do, otherwise
use the results from the function call.






Issue attributes:
        Status: Untriaged
        Owner: [EMAIL PROTECTED]
        CC: [EMAIL PROTECTED],  [EMAIL PROTECTED]
        Labels: Type-Feature Pri-2 OS-All Area-I18N

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to