Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Implement selection triangle in project panel #702

Merged
merged 9 commits into from
Apr 21, 2012

Conversation

jasonsanjose
Copy link
Member

@jasonsanjose
Copy link
Member Author

The current positioning accounts for lion scrollbars only. Additional work is needed to account for conventional scrollbars.


/**
* Within a scrolling DOMElement, creates and positions a styled selection
* div to align a single selected list item.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should document the assumptions we make about the list: it has to be a ul, the list itself has to trigger "selectionChanged" events, and anything else that's required to make this function work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do.

@njx
Copy link
Contributor

njx commented Apr 20, 2012

Initial review complete

*/
function sidebarList($scrollerElement, selectedClassName) {
var $listElement = $scrollerElement.find("ul"),
$listItem,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this var is only used in updateSelectionMarker().

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@njx
Copy link
Contributor

njx commented Apr 20, 2012

Re-review finished. Also, you'll need to merge with master (I added a variable to brackets_variables.less that should go before yours).


// fully scroll to the selectionMarker if it's not initially in the viewport
var scrollerElement = $scrollerElement.get(0),
scrollerHeight = $scrollerElement.height(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be scrollerElement.clientHeight instead, so it doesn't include the height of the bottom scrollbar. (With the current code, the item gets partially obscured by the scrollbar.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@njx
Copy link
Contributor

njx commented Apr 21, 2012

Finished re-review

@jasonsanjose
Copy link
Member Author

Thanks for catching those edge cases.

@njx
Copy link
Contributor

njx commented Apr 21, 2012

Looks good, merging

njx added a commit that referenced this pull request Apr 21, 2012
Implement selection triangle in project panel
@njx njx merged commit 7ad23aa into master Apr 21, 2012
@peterflynn peterflynn mentioned this pull request Oct 1, 2014
14 tasks
gideonthomas pushed a commit to gideonthomas/brackets that referenced this pull request May 9, 2017
…mozilla.org#1763 - continue (adobe#702)

* tested the menu

* fixed refresh temporarily

* tested refresh

* updated from upstream

* working on RemoteEvents.js

* working on RemoteEvents and removed unnecessary files

* fixed conflicts from upstream

* removed whitespace

* modified the event of change following professor's reference

* removed console.log

* removed whitespace

* modified initial value

* fixed refresh feature

* tested whitespace indicator

* removed unnecessary files
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