Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Can't Add Second CPTabViewItem to CPTabView

#184

With the latest (.6) Starter Package it does not appear to be possible to add a second CPTabViewItem to a CPTabView.

Essentially if more than one Item is created (note: the second item doesn't have to be added to activate the bug which is...odd) The tabs are created but their contents are not displayed.

I've attached a minimally modified AppController.j file that demonstrates the problem. if the indicated stanza is commented out, the first tab displays correctly, otherwise the bug is activated.

Reported by kfieldho · December 28th, 2008 @ 01:29 PM

State: invalid
Milestone: none
Assigned to: nobody

Activity

  1. Ross Boucher
    Ross Boucher

    Do you know if this code worked before, on 0.5.5, or any previous version of Cappuccino? Or is this the first time you're trying it?

    December 29th, 2008 @ 09:28 AM

  2. kfieldho
    kfieldho

    I'm afraid that this is the first time that I've tried Cappuccino, so I don't know if this was a problem in previous releases.

    December 29th, 2008 @ 09:43 AM

  3. Francisco Tolmasky
    Francisco Tolmasky
    • State changed from new to invalid

    This seems to actually be a bug in CPWebView. When I take the code and replace the webviews with normals views, as so:

    tab1View = [[CPView alloc] initWithFrame:CGRectMakeZero()]; [tab1View setBackgroundColor:[CPColor redColor]]; //... tab2View = [[CPView alloc] initWithFrame:CGRectMakeZero()]; [tab2View setBackgroundColor:[CPColor blueColor]];

    It works just fine. I'm closing this and opening: #186 CPWebView Doesn't Play Well With CPTabView

    December 29th, 2008 @ 04:07 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.