<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pivot table: Impossible to drag a field to top in Pivot Table Layout dialog"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124633">bug 124633</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Ever confirmed</td>
           <td>
                
           </td>
           <td>1
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>NEW
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Keywords</td>
           <td>
                
           </td>
           <td>difficultyBeginner, easyHack, skillCpp
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pivot table: Impossible to drag a field to top in Pivot Table Layout dialog"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124633#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Pivot table: Impossible to drag a field to top in Pivot Table Layout dialog"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124633">bug 124633</a>
              from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
        <pre>Code pointers:

the code to handle drag&drop in the list boxes is in
vcl/source/treelist/treelistbox.cxx. Look at SvTreeListBox::AcceptDrop, which
uses GetDropTarget to find out *below* which element to draw the drop cursor,
and which element to remember for actual drop. The drop method
(SvTreeListBox::ExecuteDrop), as well as drop cursor drawing method
(ImplShowTargetEmphasis), accept nullptr as target element, meaning "at the
top". So the question is how to make GetDropTarget return nullptr when mouse is
over top half of topmost element of the list (a hint: SvImpLBox::GetEntry might
need to be modified to take an optional out bool parameter telling if the pos
is at the top half of the element).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>