Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 411201 - Rework dropdown menu widget and integration with hamburger and wrench buttons
Summary: Rework dropdown menu widget and integration with hamburger and wrench buttons
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 3.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 4.0 M1   Edit
Assignee: Gabriel Luong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 408255 411727
  Show dependency tree
 
Reported: 2013-06-19 23:47 EDT by Gabriel Luong CLA
Modified: 2013-06-27 15:58 EDT (History)
1 user (show)

See Also:
mamacdon: review+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Luong CLA 2013-06-19 23:47:55 EDT
Extracted from Bug 409588
Comment 1 Gabriel Luong CLA 2013-06-27 01:46:08 EDT
https://github.com/gabrielluong/orion.client/commit/17093f4f4492139be01d06800b8e74f59c0b0c88

Notes
1. The former implementation would overwrite the parent node with innerHTML and did not make use of the <button>. 

2. An implementation decision was to make the class only good at making dropdown menu. In this case, making the dropdown menu div and add its content into the it. This dropdown menu div would then be appended to a parent node and triggered by a node that is specified by the params in the constructor. The class should not have to worry about creating the trigger node or the parent node.

3. Allows for easier styling of the trigger nodes (buttons) as a result of getting rid of (1)

4. [Fixes] Gets rid of the coloured outline around the dropdown menu container.

5. Cleaner dom in the banner. Got rid of the navigation label and arrows that weren't used.

6. The former panel param wasn't really necessary, and it was questionable if that really did anything.

7. [Fixes] Good news! You can now close the dropdown menu by clicking on the button.

8. [Fixes] Added hover to the wrench button

I assert that I authored 100% of the content of this contribution and have the rights to donate the content to Eclipse under the EPL
Comment 2 Mark Macdonald CLA 2013-06-27 15:58:39 EDT
Seems like a good cleanup, pushed
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f087afb