#89 new
Eric Meyer

Props not properly refreshed after text changed

Reported by Eric Meyer | December 11th, 2008 @ 09:47 AM | in Limelight 0.6

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.

Comments and changes to this ticket

  • Micah Martin

    Micah Martin December 12th, 2008 @ 11:00 AM

    • Tag set to bug
    • Milestone changed from Limelight 0.2 to Limelight 0.4
  • Eric Meyer

    Eric Meyer December 15th, 2008 @ 03:52 PM

    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.

  • Micah Martin

    Micah Martin August 17th, 2009 @ 05:18 PM

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

    Micah Martin October 29th, 2009 @ 08:50 PM

    • Milestone changed from Limelight 0.5 to Limelight 0.6

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Elegant UI Framework for Ruby

People watching this ticket

Tags

Pages