Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting Raphael to get mindmap to fit in a DIV #11

Open
b3ccio opened this issue Sep 23, 2011 · 3 comments
Open

Adjusting Raphael to get mindmap to fit in a DIV #11

b3ccio opened this issue Sep 23, 2011 · 3 comments

Comments

@b3ccio
Copy link

b3ccio commented Sep 23, 2011

More of a question than issue, but is there an easy way to adjust Raphael to have the mindmap fit inside a DIV instead of using the body tag?

@penyaskito
Copy link

Change Raphael(0, 0, options.mapArea.x,options.mapArea.y) to Raphael('divID',options.mapArea.x,options.mapArea.y).

@ghost
Copy link

ghost commented Jul 25, 2014

I tried to make a wordpress plugin out of your awesome code, so I also have to put the mindmap in a div-container (#js-mindmap). Your advise worked nearly, but nevertheless all anchor elements are put into body element, so the mindmap always overlaps all other content.

<body>
    <a>1</a>
    <a>2</a>
    <a>3</a>
    <div id="js-mindmap"></div>
</body>

Is there a workaround? So the anchor elements will be put into my div container?

<body>
    <div id="js-mindmap">
        <a>1</a>
        <a>2</a>
        <a>3</a>
    </div>
</body>

Thanks in advance!

@swirlingskirts
Copy link

I had this same issue. I'll try to clean up my solution enough to be worthy of adding to the js-mindmap project for others to take advantage of. It proved tricksier than just updating the line for Raphael.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants