8000 File tree: properly handle clicks on nested files and directories by dangoor · Pull Request #9353 · adobe/brackets · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

File tree: properly handle clicks on nested files and directories #9353

Merged
merged 4 commits into from
Oct 1, 2014

Conversation

dangoor
Copy link
Contributor
@dangoor dangoor commented Sep 28, 2014

This is a fix for #9316. In order to make this change, I needed to merge in #9288, so that is in this PR as well.

@dangoor
Copy link
Contributor Author
dangoor commented Sep 28, 2014

Making this change was a bit painful because I was getting unexpected interference from some events that we have bound externally via jQuery. React adds a single event handler high up in the document and processes events on its own. It can be surprising if a jQuery event grabs hold before a seemingly more specific React event.

This was also painful because there was a problem (a stray +) in jsTreeTheme.less that caused the .jstree a rule to not apply at all. So, renaming a directory caused the first file in the directory to be squashed up next to the input field.

@dangoor
Copy link
Contributor Author
dangoor commented Sep 30, 2014

I've merged with master and this still fixes 9316, but there is currently a display issue with directory renames.

8000 @dangoor
Copy link
Contributor Author
dangoor commented Sep 30, 2014

This is ready for review. There's one minor visual bit (when renaming an open directory, the directory contents shift up by a couple of pixels), but I'd like to start with the review for this so we can get it landed and tweak those couple of pixels either as part of this or soon after depending on timing.

@dangoor
Copy link
Contributor Author
dangoor commented Sep 30, 2014

@ingorichter ingorichter self-assigned this Sep 30, 2014
@ingorichter
Copy link
Contributor

I can't repro the original issue anymore. FBNC @JeffryBooher

ingorichter added a commit that referenced this pull request Oct 1, 2014
File tree: properly handle clicks on nested files and directories
@ingorichter ingorichter merged commit a9c6e52 into master Oct 1, 2014
@ingorichter ingorichter removed the Review label Oct 1, 2014
@dangoor dangoor deleted the dangoor/9316-rename-collapse branch October 1, 2014 01:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0