Author Topic: Bug with UIDraggablePanel::shouldMove?  (Read 3129 times)

jprice

  • Guest
Bug with UIDraggablePanel::shouldMove?
« on: August 21, 2012, 04:19:56 PM »
Panels with a zero dimension are intended to be unclipped in that dimension, if I understand the docs and the editor output for how it draws the purple squares. 

If that is the case, should UIDraggablePanel::shouldMove be sensitive to zero sizes?  Currently, if you have a panel with a zero size, and set UIDraggablePanel::disableDragIfFits to true, the panel will still move around if the contents fully fit in the panel.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug with UIDraggablePanel::shouldMove?
« Reply #1 on: August 22, 2012, 02:58:34 PM »
Actually, zero size means "screen size".

jprice

  • Guest
Re: Bug with UIDraggablePanel::shouldMove?
« Reply #2 on: August 22, 2012, 05:53:15 PM »
Ok, sure.  Still, setting it to zero seems to make the 'disableDragIfFits' flag on UIDraggablePanel not work, even if the panel is entirely on screen, due to there being a zero dimension in the clipping in shouldMove.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug with UIDraggablePanel::shouldMove?
« Reply #3 on: August 22, 2012, 11:02:56 PM »
Ah, I see what you mean. I'll fix it, thanks.