|
I'm trying to load a Clover chart (or SmartChart) into an iframe, but it keeps creating scrollbars even though I don't need them. How can I get rid of the scrollbars?
Explanation
iframes create scrollbars when the underlying document it is trying to load is bigger than the iframe. Even if the underlaying document seems to fit in the iframe (i.e. the chart isn't being visibly cut off), as long as it is in fact larger, it will generate the scroll bars.
Solution
In order to supress this behavior, you have to add the attribute scrolling="no" to the iframe tag.
Example:
<iframe id= "clover_chart" scrolling="no"> </iframe >
|