dockview icon indicating copy to clipboard operation
dockview copied to clipboard

Floating groups can be enlargened beyond the Dockview / screen boundary

Open zaxer2 opened this issue 1 year ago • 0 comments

Describe the bug When click-and-dragging to move a floating group, it is bound within the Dockview dimensions. However, when dragging to resize, it extends beyond the screen boundary. This renders its controls inaccessible.

For some reason, on the Dockview-Demo codesandbox, the window simply follows the mouse past the boundary. However, in my repo, it snaps to the edge and extends in the opposite direction. ...I'm not totally sure why, sorry. (CSS differences?)

To Reproduce Head on over to the Dockview Demo codesandbox, (https://codesandbox.io/p/sandbox/solitary-http-ldx2jk), click "open in new tab" in Codesandbox, open a new Floating window, and click and drag its borders past the edge of the screen. Expected behavior enlargening should cease once the enlargening edge hits a Dockview border.

Videos Codesandbox https://github.com/user-attachments/assets/4b04a916-de51-4ffe-8ae9-0ce6c4958fd7

My repo

https://github.com/user-attachments/assets/770df710-d313-49e6-a722-a67a65165c79

Desktop (please complete the following information):

  • In both cases, browser is Chrome
  • Codesandbox is Dockview version 3.0.0
  • My repo is Dockview version 2.1.4

zaxer2 avatar Jan 03 '25 20:01 zaxer2