Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
viewer toolbar not enabled - occupies empty space in the top of the screen
bcmp
<p>When toolbar are not enabled using scripts and they are embedded using JSAPI, the container occupies some amount of space in the top of the report (margin of 25px in the top). </p>
<p> </p>
<p>Is this not handled from the default implementation. Attaching the screen shot.</p>
Find more posts tagged with
Comments
micajblock
<p>This margin is reserved for the Interactive View context toolbar (not the toolbar of IV itself). See attached image. If you still want to remove the margin, there is 2 ways. Both should be done in the onContentUpdate method. One is to use jQuery (this might be tricky as the DIV name might change in the future), the other is to JSAPI to remove the margin (disadvantage with this one is that it requires an additional submit in the report). If you are already using JSAPI to embed the report just use the UI options method.</p>
<div>
<pre class="_prettyXprint">
// Using jQuery
$("div.floatPanel").children(0).css("margin-top", 0);
// Using JSAPI
// Get the Viewer's current UI Options
//var uiOptions = this.getViewer().getUIOptions();
// Remove the margin
//uiOptions.enableContentMargin(false);
// Set the modified UI Options back into the Viewer
//this.getViewer().setUIOptions(uiOptions);
//this.getViewer().submit();</pre>
</div>
<div> </div>
bcmp
<p>Great.Very Informative. Thanks!</p>