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

Possible Duplicate:
StackOverflow code snippet horizontal scrolling broken IN CHROME

I've been posting almost daily to Stackoverflow for 6 months now without a problem. Today, I suddenly find myself unable to post properly formated code. Instead of displaying with a horizontal scroll, code wraps like a blockquote. I've made no system changes, browser upgrades etc between yesterday and today.

I tested it with three different browsers: Fluid 0.9.6 , Safari 4.0.5 (6531.22.7) and Chrome 5.0.307.11 beta (for Mac) for Mac. I'm running MacOS 10.6.2:

Safari 4.0.5 (6531.22.7) test:

- (NSMutableArray *) orderedComponents{
    NSSortDescriptor *orderSort=[[NSSortDescriptor alloc] initWithKey:[ComponentToLabelMO order_Key]
                                                            ascending:YES];
    //------------------------------------------------------^
    NSArray *sorted=[[[self components] allObjects] sortedArrayUsingDescriptors:[NSArray arrayWithObject:orderSort]];
    self.orderedComponents=[[NSMutableArray alloc] initWithArray:sorted]; //use self.property= to handle retention
    return orderedComponents;
}

Dang, same problem.

More ordinary format

- (NSMutableArray *) orderedComponents{
    NSSortDescriptor *orderSort=[[NSSortDescriptor alloc] initWithKey:[ComponentToLabelMO order_Key] ascending:YES];
    NSArray *sorted=[[[self components] allObjects] sortedArrayUsingDescriptors:[NSArray arrayWithObject:orderSort]];
    self.orderedComponents=[[NSMutableArray alloc] initWithArray:sorted]; //use self.property= to handle retention
    return orderedComponents;
}

Chrome 5.0.307.11 beta (for Mac)

- (NSMutableArray *) orderedComponents{
    NSSortDescriptor *orderSort=[[NSSortDescriptor alloc] initWithKey:[ComponentToLabelMO order_Key] ascending:YES];
    NSArray *sorted=[[[self components] allObjects] sortedArrayUsingDescriptors:[NSArray arrayWithObject:orderSort]];
    self.orderedComponents=[[NSMutableArray alloc] initWithArray:sorted]; //use self.property= to handle retention
    return orderedComponents;
}

Same browser:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    FirstLevelZeroTVC *flz;
    FirstLevelOneTVC *flo;
    FirstLevelTwo *flt;
    switch (indexPath.row) {
        case 0:         
            flz=[[FirstLevelZeroTVC alloc] initWithStyle:UITableViewStylePlain];
            [self.appDelegate.navigationController pushViewController:flz animated:self.shouldShowAnimation];
            break;
        case 1:
            flo=[[FirstLevelOneTVC alloc] initWithStyle:UITableViewStylePlain];
            [self.appDelegate.navigationController pushViewController:flo animated:self.shouldShowAnimation];
            break;
        case 2:
            flt=[[FirstLevelTwo alloc] initWithStyle:UITableViewStylePlain];
            [self.appDelegate.navigationController pushViewController:flt animated:self.shouldShowAnimation];
            break;

        default:
            break;
    }
}

Here's a screenshot of what I see.

What I'm seeing might be similar that reported in this question.

Anyone else seen this problem?

share|improve this question

marked as duplicate by perbert, fretje, random, Jeff Atwood Mar 21 '10 at 5:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I moved the code blocks to meta –  Kyle Cronin Mar 20 '10 at 21:55
    
@rep dēpō: I don't know if it was on purpose, but with your current name we can't access to your profile unless we remove the display name part. –  perbert Mar 20 '10 at 22:29
    
@voyager: see meta.stackexchange.com/questions/43051/… -- it was absolutely intentional on Kyle's part. –  Ether Mar 20 '10 at 22:31
    
I hijacked the stackoverflow answer because I wasn't sure that the error would transfer. –  TechZen Mar 20 '10 at 23:41
1  
Already reported in meta.stackexchange.com/questions/43039/… –  Sky Sanders Mar 21 '10 at 0:34
add comment

2 Answers

I see the same behavior on Chrome in Linux.

Firefox formats the code blocks correctly, which gives me the impression that it must be a Webkit related problem.

share|improve this answer
    
Did the behavior you see start suddenly? –  TechZen Mar 20 '10 at 23:45
    
I just noticed it now, @tec. –  perbert Mar 21 '10 at 1:38
add comment

I see the same issue on Chrome 4.1.249.1036 stable and IE8 8.0.7600.16385 (32 and 64bit) running on Windows 7 64 bit. Firefox 3.6 does the right thing.

share|improve this answer
add comment

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