Moodle

Convert Navigation to use the YUI TreeView control

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Libraries
  • Labels:
    None
  • Difficulty:
    Moderate
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Darryl Pogue raised the possibility of converting the Navigation to use the YUI treeview controls and created a prototype conversion to prove its possible.
As such I will now convert the navigation to use the treeview control

Activity

Hide
Sam Hemelryk added a comment -

Hmmmm, after looking into this and the way in which the YUI TreeView control operates the following points have arisen that make me hesitant in pursuing this issue:

1. The TreeView control doesn't resize when nested within an absolute positioned panel. Because of this when it is docked it takes a minimal width and doesn't resize even as the tree grows through AJAX expansion. This also in turn shows a graphical display error whereby the text and/or icons of a treenode flow over their branch to the right pulling themselves out of line.

2. The TreeView control when instantiating from a static structure disregards any and all css classes and id attributes from nodes. This simply means that if we want to do this we should do it before the release of 2.0 as it greatly affects any styles that may be used for the TreeView.

Perhaps you have some thoughts on whether this should still be done Martin?

Show
Sam Hemelryk added a comment - Hmmmm, after looking into this and the way in which the YUI TreeView control operates the following points have arisen that make me hesitant in pursuing this issue: 1. The TreeView control doesn't resize when nested within an absolute positioned panel. Because of this when it is docked it takes a minimal width and doesn't resize even as the tree grows through AJAX expansion. This also in turn shows a graphical display error whereby the text and/or icons of a treenode flow over their branch to the right pulling themselves out of line. 2. The TreeView control when instantiating from a static structure disregards any and all css classes and id attributes from nodes. This simply means that if we want to do this we should do it before the release of 2.0 as it greatly affects any styles that may be used for the TreeView. Perhaps you have some thoughts on whether this should still be done Martin?
Hide
Sam Hemelryk added a comment -

Just talked this through with Martin, given that there are some pretty strong drawbacks and challenges when attempting to dock the TreeView control it looks like this will be left at the moment. Ohhhh well worth looking at at least

Show
Sam Hemelryk added a comment - Just talked this through with Martin, given that there are some pretty strong drawbacks and challenges when attempting to dock the TreeView control it looks like this will be left at the moment. Ohhhh well worth looking at at least

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: