playcanvas / editor

Issue tracker for the PlayCanvas Editor
https://playcanvas.com/
154 stars 28 forks source link

Code Editor File Dropdown Bug #1065

Open kpal81xd opened 10 months ago

kpal81xd commented 10 months ago

Description

Graphical bug when hovering over the File dropdown in the Code Editor. The red highlighted box below indicates the area for which the dropdown is unresponsive.

image

Steps to Reproduce

  1. Visit any valid Code Editor https://playcanvas.com/editor/code/{any_id}
  2. Hover over the File dropdown option
  3. The button is only clickable and the hover effect only shows in the lower and right portion of the option
willeastcott commented 10 months ago

Looks like it's the drag handle for the PCUI tree view:

image

willeastcott commented 10 months ago

If you try to drag a tree view item, the 'invisible' drag handle disappears from the top left corner.

willeastcott commented 10 months ago

I'm wondering if this should be created hidden: https://github.com/playcanvas/pcui/blob/main/src/components/TreeView/index.ts#L196

kpal81xd commented 10 months ago

Yes since the drag handle item will be hidden once the drag action has been completed already restoring the File dropdown to perform as intended.