Bug Tracker

Opened 11 years ago

Closed 10 years ago

#3253 closed enhancement (invalid)

[treeview] tweak for long lists

Reported by: wmorrell Owned by:
Priority: trivial Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: treeview Cc:
Blocked by: Blocking:

Description

The Treeview plugin by Jörn Zaefferer is a great unobtrusive plugin to turn nested UL and LI tags into an expandable/collapsable tree. However, there are some issues in using the plugin on larger trees. For example, the plugin's Large Tree Demo http://jquery.bassistance.de/treeview/demo/large.html, when using the Expand All control at the top, causes the dotted line under the Lifestyle section of the demo to terminate prematurely, before the Visiting section. The plugin currently uses two GIF sprites to draw its controls and lines, which restrict the ability of the images to repeat as a background, and cause the upper bound on tree height.

I have sidestepped this limitation by adding an embedded 16x2 GIF that can repeat in the Y direction, and modifying the hitbox sprite to give the hitboxes a white (instead of transparent) background. The red, black, and gray themes could be similarly modified with a 16x1 GIF. The patch will allow for arbitrary height trees, but will not fix arbitrary height list items.

Attachments (2)

jquery.treeview.css.patch (1.3 KB) - added by wmorrell 11 years ago.
Patch file for jquery.treeview.css
treeview-default.gif (1.2 KB) - added by wmorrell 11 years ago.
Default hitbox sprite with white background inside box.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by wmorrell

Attachment: jquery.treeview.css.patch added

Patch file for jquery.treeview.css

Changed 11 years ago by wmorrell

Attachment: treeview-default.gif added

Default hitbox sprite with white background inside box.

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .

Note: See TracTickets for help on using tickets.