Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I followed this tutorial to connect a digit.tree to a store.JsonRest and everything works well. Before adding a dojo theme The tree is display with pure html, actions work perfectly, I can display my tree branch by branch. When I add a theme (claro in my case) the tree is loaded in memory (I use the dojo plugin for firebug to verify) but nothing is displayed. There isn't any error in the console.

So if anyone have an idea. Thank you.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

So, just to check, by "adding a theme", you mean linking in the appropriate Claro CSS file and marking the body with class="claro", and you're then finding that the previously-visible tree disappears? (If you haven't marked the body as such, that may well be be your problem.)

If that's the case, use Firebug to check the sizes of the rendered elements in your page DOM (I presume they're still there). If they've shrunk down to 0px x 0px or equivalent, try using Firebug to manually change the size of, say, the top-level element and see what effect that has.

You may need to override the sizes of some of the nodes, or the top-level tree itself, or ensure the html+body are bigger than 0px (e.g. 100%).

share|improve this answer
    
Which aspect of this helped, by the way? –  Royston Shufflebotham May 10 '12 at 12:06
    
Thank You @Royston, I forced the size of my div container and the tree just appears on right of the page. do you know why ? –  Swann May 10 '12 at 12:09
    
Sorry, no. I'd have a good look at the tutorial you linked to, and look (using Firebug or equivalent) at the styles applied to the various nodes, and compare with your own. There are so many things that can go wrong with the styling that it'll be hard. Maybe start with something cloned from the tutorial and tweak bit-by-bit instead of starting from scratch? –  Royston Shufflebotham May 10 '12 at 12:14
    
ok, I found the problem, that was bad 'flot' css property in my header... I just add a 'clear:both' and it works. thank you again ! –  Swann May 10 '12 at 12:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.