Viewing 1 replies (of 1 total)
  • Plugin Author ulfben

    (@ulfben)

    If you’re willing to run the plugin without icons (folders / files), you can apply word wrap to the nodes, set them to display:block and apply some margin adjustment until you’re happy.

    Otherwise there’s a javascript hack I created for a site called ripostelaique some time ago. You can try that branch and see if it helps.

    http://plugins.svn.wordpress.org/wp-dtree-30/branches/ripostelaique/

    It simply walks through the tree after page load, hides all indentation sprites and replaces them with margin-adjustments according to the number of sprites. (eg. maintaining the same apparent indentation via CSS instead of using pictures). This change is applied to an entire node, guaranteeing all lines of text will be adjusted by the same amount.

    It then moves all icons *not* used for indentation (eg. the page icon) back one sprite-width so it doesn’t interfere with the text flow.

    This requires that “animation” is on (eg. that jquery is loaded)

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-dTree] Put longer text on 2 lines ?’ is closed to new replies.