QuickTip : WordPress Freemind Viewer Plugin – Align to Left

For my one of the blogs TDD Nuggets I used Freemind Viewer plugin which worked really well. However it had one annoying issue. The mindmap was somehow was not aligned to left. Because of that the whole mindmap was not visible and one has to drag it on the page to see it fully. That itself was a big hindrance to usability.

In order to display Flash based mindmap, following change was required in wp-freemind/wp-freemind.php plugin file and it finally worked.

<!--
var fo = new FlashObject("/wp-content/plugins/wp-freemind/visorFreemind.swf", "visorFreeMind", "100%", "100%", 6, "#9999ff");
fo.addVariable("initLoadFile","'.$content.'");
fo.addVariable("offsetX","left");
fo.write("'.$id.'");
//-->

In above mentioned snippet, line 4 is added in order to set “offsetX” FlashObject variable.

ShriKant Vashishtha is an enterprise Agile Coach, IT strategist, trainer, thinker and hands-on geek. He is passionate towards enterprise Agile transformation, quality aspect of software development including TDD, refactoring, Continuous Delivery, DevOps and Test Automation. He can be reached at vashishtha_sk@yahoo.com.

Posted in QuickTip, wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CommentLuv badge

Welcome to Sampreshan
Technology Strategist, Speaker, Scrum/XP/Agile Trainer Coach and Trainer
Your interest areas
Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: