What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

A few days ago, Mysticial's answer to the famous branch prediction question passed 10000 votes. This is, as far as I know, the only question or answer with a 5-digit score anywhere on the SE network.

When you find this answer in search results (e.g. search score:4600 on SO; see image below), the vote count overflows the .stats box, at least on Windows 7 with Chrome 31:

"10105 votes" overflowing stats box in search results

This is a thing that should probably not happen.

(Note that there are no issues with 4-digit-score questions or answers.)

share|improve this question
This is probably the first bug of its kind that I have seen that was not caused by Jon Skeet –  scrblnrd3 Jan 2 at 20:31
Maybe it should just say 10K –  rene Jan 2 at 20:33
I'd vote for 10.1K. –  Lance Roberts Jan 2 at 20:38
@LanceRoberts does that fit? –  rene Jan 2 at 20:40
Well, 4 numbers fit fine, I'd think a dot added in there would work, but I'd expect them to test it out. –  Lance Roberts Jan 2 at 20:41
@IlmariKaronen purely based on a wrong assumption... –  rene Jan 2 at 21:16
Ah, now it shows up on meta... I remember the moment it hit 10k, a couple of us from the Anime chatroom went around searching for all the overflow bugs that it would cause. In the end we found only two: 1) Search. 2) The answers tab on my user profile. Right now, the 10107 only looks a bit off-center in my answers tab. But back when it was 10000, the last digit was partially cut off. It doesn't happen now since the font is not fixed-width and the "1" in the middle is shorter. –  Mysticial Jan 2 at 21:33
Approximately one hundred thousand people don't know how voting works. –  Robert Harvey Jan 2 at 23:33
@Mysticial How does it feel to write an answer so good, other people get silver badges off of it? –  Dennis Meng Jan 3 at 1:17
Related Answer: meta.stackexchange.com/a/14686/13295 –  Lance Roberts Jan 3 at 14:20
@TheGrinch I'm probably just slow, but I don't get what you mean by that. There are only ten thousand votes on that answer, and about twenty thousand votes in the screenshot (by score, I haven't looked at the up/down). Who are the hundred thousand voters you speak of? –  jadarnel27 Jan 3 at 14:55
@jadarnel27 - must be all the SO members who didn't upvote this question, may god have mercy on their wretched souls –  Leeor Jan 3 at 15:32
@jdarnel: Oh, hell. I got the decimal point in the wrong place. I meant to say ten thousand. –  Robert Harvey Jan 3 at 15:47
@TheGrinch Haha, nice. I wasted a lot of time and thought because I assumed I was the one missing something =P –  jadarnel27 Jan 4 at 0:06

2 Answers 2

This issue (though without this test case) was brought up four years ago in this question and the powers that be decided to just put the k or m in the text underneath the votes or views number.

I think that they should change to what this answer recommends, and put the k or M as a suffix to the number itself, just like we do with reputation, and just use the word 'votes' or 'views' without the prefix.

Example for this case:


share|improve this answer

An alternative solution would be to just reduce the font size for vote counts longer than four digits. In fact, I wrote some client-side JavaScript to do just that:

$('.stats .vote-count-post strong').filter( function () {
    return this.textContent.length > 4
} ).css( 'font-size', '80%' );

With this fix, the example search given in the question above looks like this:

Screenshot of five-digit vote count with reduced font size

I've added the JS code above to version 1.4 of the Stack Overflow Unofficial Patch, a collection of client-side CSS and JavaScript fixes packaged as a GreaseMonkey-style user script. If you're using a compatible browser (Firefox, Chrome, Opera, possibly Safari and others, but unfortunately not IE or most mobile browsers), please give it a try!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .