Transcluded button in a reveal widget is shifting position

I hacked the TOC-generic plug in to add an inline editing option using a reveal widget in the plug-in’s transclusion macro tiddler. It’s working, but the transcluded edit button in the reveal widget is shifting position depending upon whether transclusion macro tiddler is open in the storyriver or not. See this example tiddler with references. The edit button moves up and down depending upon whether transclusion macro tiddler is open in the storyriver or not. Open the tiddler called ultrasound alone and together with $:/plugins/HCHaase/TOCgeneric/macro/transclusion tiddler to see the edit button shifting position.

Also the contents of the transcluded reference tiddlers are not fully wikified even though block mode is used in the transclude widget.

Can someone help?