0

I am currently trying to upgrade jsTree to version 3.3 but I am having some issues. We are using a sprite sheet for the icons and use positioning to get the correct one. Sadly it seems that the position has been removed in the new version of jsTree. I know that I can create css classes to handle it all, but I was hoping to keep using js like before.

This is what i was using before.

file: {
   icon: {
          image: '/gfx/icons/tree-structure-icons.png',
          position: '0 0'
         }
},

Here is a jsFiddle of what I am doing now.

http://jsfiddle.net/qeqmzsaw/

As you can see I am not able to define where on my icon sheet the icon is (as I could in older versions)

Sinnbeck
  • 617
  • 4
  • 20
  • 56

0 Answers0