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.

Wrapping a layer with a div with margin:auto messes up the display of wires when you're dragging them

#23
<div id="wrapper">
   <div id="layer">

#wrapper { margin:auto; width:800px; }

var layer = document.getElementById('layer');
new WireIt.Layer({parentEl:layer});

The above wraps the layer in a div that centres everything. You will note that if you try to drag a wire around, the end of the wire is not connected to your mouse cursor but is displaced by the same distance as the wrapper is moved from the side of the screen.

Reported by jon (at osmosoft) · July 17th, 2009 @ 07:49 PM

State: new
Milestone: none

Activity

  1. jgoeth
    jgoeth

    I'm facing exactly the above problem.

    I'm desperatly looking for a workaround. Is there a solution for it?

    Thanks

    July 28th, 2009 @ 12:34 PM

  2. eric.abouaf (at gmail)
    eric.abouaf (at gmail)

    Hi,

    Ths solution would be to position the editing wire in the layer element.

    This is handled by WireIt.TerminalProxy (in Terminal.js)

    I'll have a look at it later...

    By the way, I'm moving the issue tracker on github (they have one now....)

    ++

    August 10th, 2009 @ 03:14 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.