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.

Placement vs Margins

#18

When placing an item on a panel sort of prop, the items x and y are independent of the margins (ergo they are placed based off of where the visible panel is) however mouse clicks register x and y from where the beginning of the panel is including the margins.

Reported by Justin · June 10th, 2008 @ 12:23 PM

State: invalid
Milestone: Limelight 0.2
Assigned to: Micah Martin Micah Martin

Activity

  1. Justin
    Justin

    This isn't actually hard to compensate for... however perhaps the margins should be something separate from the prop.

    June 19th, 2008 @ 04:39 PM

  2. Micah Martin
    Micah Martin
    • State changed from new to invalid
    • Assigned user set to Micah Martin
    • Tag cleared.

    This is by design. The margin is part of the prop. Detecting click will have to compensate for any margin, border, and padding. Prop provide a method, areaInsidePadding(), or something like that, which should help.

    August 30th, 2008 @ 11:34 AM

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.