Comment #9 on issue 13515 by viettrungluu: Dragging a window by grabbing  
the bottom edge of the titlebar after ripping off a tab does not work
http://code.google.com/p/chromium/issues/detail?id=13515

It may be an Apple bug in animating |-setFrame:|. Replacing  
the "[frameTarget setFrame:tabFrame];" line with
the following either fixes this bug or makes it extremely hard to reproduce  
(i.e., I haven't managed to) --
unfortunately, it also makes animation look a bit wonky:

         if (!oldTargetValue ||
             !NSEqualPoints([oldTargetValue rectValue].origin,  
tabFrame.origin))
           [frameTarget setFrameOrigin:tabFrame.origin];
         if (!oldTargetValue ||
             !NSEqualSizes([oldTargetValue rectValue].size, tabFrame.size))
           [frameTarget setFrameSize:tabFrame.size];

On the other hand, replacing it with the following merely makes it hard to  
reproduce (I have, with some effort)
-- since you need a bad case when |-setFrame:| is called:

         if (oldTargetValue &&
             NSEqualSizes([oldTargetValue rectValue].size, tabFrame.size))
           [frameTarget setFrameOrigin:tabFrame.origin];
         else if (oldTargetValue &&
             NSEqualPoints([oldTargetValue rectValue].origin,  
tabFrame.origin))
           [frameTarget setFrameSize:tabFrame.size];
         else
           [frameTarget setFrame:tabFrame];

Maybe I'll have to come up with a test app which isolates the problem.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to