Ticket #5973 (closed defect: fixed)
[cla][patch][test]TitlePane not easily subclassed
| Reported by: | nathan | Owned by: | bill |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
TitlePane? is not very easily subclassed - since the _setCss function operates on focusNode. The end result is that a subclass cannot move focusNode off of the title bar (although, it may be desirable - for example, to have *ONLY* the arrow be the focus node).
In the included patch is a test case (in the form of a patch to tests/test_TitlePane.html) that demonstrates moving the nodes around.
The suggested fix is to create a new attach point (called, in this patch "titleBarNode") and use that node for the _setCss functions.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.