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.

Props not properly refreshed after text changed

#89

I put props with no text on a screen in the props.rb file.

On scene_opened (in the player) I found the props and changed their text. After this the props kept their original positions and did not account for their increased size. This caused the props to overlap.

However, if I create the props with the correct text originally, they have their proper position and do not overlap.

Reported by Eric Meyer · December 11th, 2008 @ 09:47 AM

State: new
Milestone: Limelight 0.6
Assigned to: nobody

Activity

  1. Micah Martin
    Micah Martin
    • Tag set to bug
    • Milestone changed from Limelight 0.2 to Limelight 0.4

    December 12th, 2008 @ 11:00 AM

  2. Eric Meyer
    Eric Meyer

    Here is the code that did it.

    from props.rb: group {

    label :id => "ticket_title", :name => "ticket_title"
    label :id => "ticket_state", :name => "ticket_state"
    
    

    } group {

    label :id => "ticket_assigned_user", :name => "ticket_assigned_user"
    
    

    } group {

    label :id => "ticket_milestone", :name => "ticket_milestone"
    
    

    }

    from my view_ticket.rb player: def scene_opened(event)

    scene.find("ticket_title").text = current_ticket.title
    scene.find("ticket_state").text = current_ticket.state.capitalize
    scene.find("ticket_assigned_user").text = "Assigned User: #{current_ticket.assigned_user_name}"
    scene.find("ticket_milestone").text = milestone_title
    
    

    end All of the methods on current_ticket and milestone_title are just strings.

    December 15th, 2008 @ 03:52 PM

  3. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.4 to Limelight 0.5

    August 17th, 2009 @ 05:18 PM

  4. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.5 to Limelight 0.6

    October 29th, 2009 @ 08:50 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.