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

I just noticed this on the dev meta, but If i click on on the "accept answer" link before 15 minutes, I get a "You can accept an answer in X minutes", however, if I then click on the up-vote (if I don't have enough rep), it overlays the alerts ontop of each other, making it appear as:

alt text

Or as "Vote up requires 15 reputation inutes" -- it just looks really weird

Update: I noticed that this happens on all overlays on all sites (when there are multiple overlays on top of each other)

share|improve this question
    
you broke it... –  IAbstract May 18 '10 at 2:37
    
@dboarman - I know =( –  Mitch Dempsey May 18 '10 at 2:37
    
It should probably hide any other alerts before showing that one. –  Josh K May 18 '10 at 3:10
    
Yea, that's what I figured would be the fix –  Mitch Dempsey May 18 '10 at 3:42

3 Answers 3

up vote 7 down vote accepted

Two options I see:

  1. Hide all alert boxes before showing the new one (as Josh K suggested in the comments)
  2. Add a border/shadow to the popup to make it more obvious what's going on (bonus: makes it look nicer when there's only one too):

drop shadows ahoy!

CSS:

border: solid 1px #000;
-webkit-box-shadow: 2px 2px 5px #000;
-moz-box-shadow: 2px 2px 5px #000;
box-shadow: 2px 2px 5px #000;
share|improve this answer
2  
oooh, the no-code solution.. a man after my own heart :) –  Jeff Atwood May 20 '10 at 6:51
    
@Jeff - what can I say... I am lazy. :) –  Alconja May 20 '10 at 7:09
2  
I think having the script clear out all prior boxes would be the most elegant. But the border definitely does help –  Mitch Dempsey May 20 '10 at 9:52
    
so this is a viable solution? where do I insert the non- code? –  IAbstract May 20 '10 at 17:54
    
+1 for "Fake 2nd popup" alone. –  Daniel Daranas Jun 22 '10 at 9:10

I went with the CSS solution proposed by Alconja.

share|improve this answer
    
Sweet! Will this change also appear on the other sites in the trilogy? –  Mitch Dempsey Jun 3 '10 at 1:36
3  
So can I add "StackOverflow.com developer" to my CV now? ;) –  Alconja Jun 3 '10 at 22:49

This solution does not fix the case where you can trigger the same "you cannot vote on your own post" warning to appear multiple times even when the warning is already present, and the new warnings will overlay over the previous exactly lining up, such that it always looks like it's only one message.

Then, when you click on the message to dismiss, nothing appears to happen. This is because it only dismisses one of many identical messages layed exactly on top of each other, thus creating the impression of a broken UI.

I wrote about this in another post but it was (in my opinion wrongly) merged with this one as if it was the same issue, see Minor bug: same warning overlaps itself, looks like one

share|improve this answer

You must log in to answer this question.

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