Last modified: 2014-04-07 19:07:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32309, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30309 - SimpleSearch dropdown not wide enough for long titles
SimpleSearch dropdown not wide enough for long titles
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: 1.23.0 release
Assigned To: Bartosz Dziewoński
:
Depends on:
Blocks: 27411
  Show dependency treegraph
 
Reported: 2011-08-10 14:57 UTC by Dan Barrett
Modified: 2014-04-07 19:07 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
English Wikipedia illustrating the bug in Firefox 3.6.18. (12.24 KB, image/png)
2011-08-10 14:57 UTC, Dan Barrett
Details

Description Dan Barrett 2011-08-10 14:57:28 UTC
Created attachment 8903 [details]
English Wikipedia illustrating the bug in Firefox 3.6.18.

The SimpleSearch dropdown of suggested titles has the nice feature of automatically resizing to fit titles, but it doesn't resize itself enough, cutting off the endmost character. Here is an example.

Visit the English Wikipedia and type in the SimpleSearch box:

  federal info

In the dropdown of suggestions, you will see this title:

  Federal Information Security Management Act of 2002

However, the last character is cut off, displaying only:

  Federal Information Security Management Act of 200

Confirmed in Firefox 3.6.18, Internet Explorer 8, and Chrome 13.0.782.112, all on Windows.  I will attach a screenshot.
Comment 1 Roan Kattouw 2011-08-10 15:00:09 UTC
The fact that it stops resizing at some point is a feature. However, it's supposed to put dots in the middle so you can see the beginning and end of the title, and that's not happening in your screenshot.

Reproduced this by typing "llanfairpwll" into the search box on English Wikipedia.
Comment 2 Dan Barrett 2011-08-10 15:14:10 UTC
Thank you very much.

If you fix this, it would be fantastic if you could also allow the sysadmin to configure the maximum allowable width, whether through a $wg... configuration variable or a hook.  Some wikis (like ours) are willing to accept a very wide dropdown as we have many long titles.
Comment 3 Bartosz Dziewoński 2012-11-17 17:21:13 UTC
SimpleSearch
Comment 4 Bartosz Dziewoński 2012-11-17 17:24:35 UTC
Whoops, accidentally submitted the form too early.

Still happens, verified on en.wikipedia using Opera 12.10. Looks like the autoellipsis feature assumes there is slightly more space than there actually is.

I think this is because the autoellipsis is calculated before the bolding (to the part you actually typed) is applied.
Comment 5 Gerrit Notification Bot 2014-02-04 12:50:05 UTC
Change 111180 had a related patch set uploaded by Bartosz Dziewoński:
jquery.suggestions, mediawiki.searchSuggest: Don't use jquery.autoEllipsis

https://gerrit.wikimedia.org/r/111180
Comment 6 Gerrit Notification Bot 2014-04-07 19:00:10 UTC
Change 111180 merged by jenkins-bot:
jquery.suggestions, mediawiki.searchSuggest: Don't use jquery.autoEllipsis

https://gerrit.wikimedia.org/r/111180
Comment 7 Bartosz Dziewoński 2014-04-07 19:07:19 UTC
This should no longer happen after the patch above is deployed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links