-
RROctober 25, 2016 at 5:16 am #6527
I would like to have the weighted tree by itself, without the surrounding scroll bars. Is this possible? I have removed all other elements from your weighted tree example. The current code in WeightedtreeTest.html is:
<script> //Once the document is ready we set javascript and page settings var screenWidth; var screenHeight; $(document).ready(function () { var rect; if (self==top) { rect = document.body.getBoundingClientRect(); } else { rect = document.body.getBoundingClientRect(); } //Set display size based on window size. screenWidth = (rect.width < 960) ? Math.round(rect.width) : Math.round((rect.width - 210)); screenHeight=1000; // Set the size of our container element. viz_container = d3.selectAll("viz_container") .style("width", screenWidth + "px") .style("height", screenHeight + "px"); loadData(); }); </script>
vizulyOctober 25, 2016 at 8:24 am #6528Hello,
If you mean you would like to have the weighted tree fill up the whole page, you can explicitly set the width/heigh of the tree to the same as the browser window.
If you don’t want the tree to be able to scroll within it’s container, you can use CSS to set the scroll property to “none” for the relevant DIV tags. I may take a little hunting around with the browser debugger to find the correct DIV tags to disable scrolling with.
– Tom
RROctober 26, 2016 at 6:39 am #6533Hey Tom,
Thank you for your response!
So the exact problem is that scrolling does not happen when the tree goes beyond the right of the screen or beyond the top of the screen. I played around with the css and set it to scroll and also auto, but that didn’t fix it. Could you point me to the exact file where this might be fixed? Thanks!vizulyOctober 26, 2016 at 8:21 am #6534Hi RR,
Okay, now I understand what you are asking for.
Scrolling should be supported using a scroll wheel and/or arrows. Since this is occurring in the SVG – scroll bars are not present (SVG does not inherently have scroll bars on its objects.)
Which browser are you using?
I have built customized solutions for clients that support more obvious scrolling via HTML, but that is bit more complex than what I can describe in a post.
Tom
-
|
You must be logged in to reply to this topic.