<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>You are right about it looking good for menu items. TransferMorph
      specifically aligns its bottomLeft with the hand, thus keeping the
      text fully readable.</p>
    <p><br>
    </p>
    <p><font face="Georgia">aboutToBeGrabbedBy: aHand <br>
            "The receiver is being grabbed by a
        hand.                           <br>
            Perform necessary adjustments (if any) and return the actual
        morph    <br>
                 that should be added to the hand."<br>
            "Since this morph has been initialized automatically with
        bounds origin   <br>
                 0@0, we have to move it to aHand position."<br>
            super aboutToBeGrabbedBy: aHand.<br>
        <br>
            self align: self fullBounds bottomLeft with: aHand position.<br>
            aHand newKeyboardFocus: self.</font><br>
    </p>
    <br>
    The above could be changed to #topLeft and perhaps achieve the
    effect you wanted, although maybe less nicely for menu/list items. I
    was thinking that since TransferMorph was making things a bit
    difficult, maybe TransferMorph could clean things up. Have you
    installed a transferMorphConverter in the World? What does it do?
    Maybe that's the place to handle the offset.<br>
    <br>
    morphToDropForTransferMorph: aTransferMorph <br>
        "aTransferMorph has been dragged directly onto the desktop. 
    TransferMorphs, by nature, are about transferring a 'logical object'
    from another source. Answer the Morph that should actually be
    dropped on to the desktop."<br>
        ^ self<br>
            perform: self transferMorphConverter<br>
            with: aTransferMorph<br>
    <br>
    <div class="moz-cite-prefix">On 3/24/17 4:51 AM, Rein, Patrick
      wrote:<br>
    </div>
    <blockquote cite="mid:1490345468868.82173@hpi.de" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
      <p>I just also made a small gif to show the usual use case of
        dropping an object in the world which is not a morph yet.<br>
      </p>
      <div dir="ltr" style="font-size:12pt; color:#000000;
        background-color:#FFFFFF;
        font-family:Calibri,Arial,Helvetica,sans-serif">
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            face="Calibri, sans-serif" color="#000000"><b>From:</b>
            Squeak-dev
            <a class="moz-txt-link-rfc2396E" href="mailto:squeak-dev-bounces@lists.squeakfoundation.org"><squeak-dev-bounces@lists.squeakfoundation.org></a> on
            behalf of Rein, Patrick<br>
            <b>Sent:</b> Friday, March 24, 2017 09:39<br>
            <b>To:</b> The general-purpose Squeak developers list<br>
            <b>Subject:</b> Re: [squeak-dev] The Inbox:
            Morphic-pre.1329.mcz</font>
          <div> </div>
        </div>
        <div>
          <p>Hi Bob,<br>
          </p>
          <p><br>
          </p>
          <p>I think I see now what I missed out in my explanation.
            Ordinary morph drag and drop should not be affected by my
            change at all. <br>
          </p>
          <p>Actually you can still drag and drop morphs like before
            (even openInHand and dropping it afterwards). </p>
          <p><br>
          </p>
          <p>What I intented to change was the drop behavior for the
            mechanism for opening a morph for an object dropped in the
            world (basically
            PasteUpMorph>>transferMorphConverter:).
            <br>
          </p>
          <p><span
              style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:16px; background-color:rgb(255,255,255)">For
              example, </span>my method checks whether the dropped
            object is a Model and if so tries to open it with
            ToolBuilder.​<br>
          </p>
          <p><br>
          </p>
          <p>The drag starts in PluggableTreeMorph>>#startDrag: to
            answer your initial question.<br>
          </p>
          <p><br>
          </p>
          <p>Bests<br>
          </p>
          <p>Patrick<br>
          </p>
          <div style="color:rgb(33,33,33)">
            <hr tabindex="-1" style="display:inline-block; width:98%">
            <div id="divRplyFwdMsg" dir="ltr"><font
                style="font-size:11pt" face="Calibri, sans-serif"
                color="#000000"><b>From:</b> Squeak-dev
                <a class="moz-txt-link-rfc2396E" href="mailto:squeak-dev-bounces@lists.squeakfoundation.org"><squeak-dev-bounces@lists.squeakfoundation.org></a> on
                behalf of Bob Arning <a class="moz-txt-link-rfc2396E" href="mailto:arning315@comcast.net"><arning315@comcast.net></a><br>
                <b>Sent:</b> Thursday, March 23, 2017 18:15<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a><br>
                <b>Subject:</b> Re: [squeak-dev] The Inbox:
                Morphic-pre.1329.mcz</font>
              <div> </div>
            </div>
            <div>
              <p><font face="Georgia">The real question is how the morph
                  got attached to the hand in the first place. People
                  have been picking morphs up and dropping them for
                  decades, so there is something new here. Do you have
                  the code that put the bowl into the hand?</font><br>
              </p>
              <br>
              <div class="moz-cite-prefix">On 3/23/17 11:43 AM, Rein,
                Patrick wrote:<br>
              </div>
              <blockquote type="cite">
                <style type="text/css" style="">
<!--
p
        {margin-top:0px;
        margin-bottom:0px}
-->
</style>
                <p>Well before the change, the morph would have opened
                  anywhere in the world. Most of the time that was not
                  close to the hand.<br>
                </p>
                <p><br>
                </p>
                <p>You are right though, that the new behavior look
                  weird too... Maybe this is because it looks good for
                  dragging menu items?<br>
                </p>
                <div style="color:rgb(33,33,33)">
                  <hr tabindex="-1" style="display:inline-block;
                    width:98%">
                  <div id="divRplyFwdMsg" dir="ltr"><font
                      style="font-size:11pt" face="Calibri, sans-serif"
                      color="#000000"><b>From:</b> Squeak-dev
                      <a moz-do-not-send="true"
                        class="moz-txt-link-rfc2396E"
                        href="mailto:squeak-dev-bounces@lists.squeakfoundation.org">
<squeak-dev-bounces@lists.squeakfoundation.org></a> on behalf of
                      Bob Arning <a moz-do-not-send="true"
                        class="moz-txt-link-rfc2396E"
                        href="mailto:arning315@comcast.net">
                        <arning315@comcast.net></a><br>
                      <b>Sent:</b> Thursday, March 23, 2017 16:36<br>
                      <b>To:</b> <a moz-do-not-send="true"
                        class="moz-txt-link-abbreviated"
                        href="mailto:squeak-dev@lists.squeakfoundation.org">
                        squeak-dev@lists.squeakfoundation.org</a><br>
                      <b>Subject:</b> Re: [squeak-dev] The Inbox:
                      Morphic-pre.1329.mcz</font>
                    <div> </div>
                  </div>
                  <div>
                    <p><font face="Georgia">I guess one question is why
                        the bowl was attached to the hand at the lower
                        left corner of the bowl rather than the upper
                        left. If it had been attached at the upper left,
                        then it probably would have dropped right where
                        expected.</font><br>
                    </p>
                    <br>
                    <div class="moz-cite-prefix">On 3/23/17 11:13 AM,
                      Rein, Patrick wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <pre>This allows for more "intuitive" drag and drop behavior. When I drop something into the world and a morph is opened for it than the morph is displayed at the position where the element was dropped. For a simple example so the gif attached.
</pre>
                    </blockquote>
                    <br>
                  </div>
                </div>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
              </blockquote>
              <br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>