views:

10

answers:

0

I'm trying to get a google gadget I created to auto-set it's height, but the gadgets.window.adjustHeight() function call doesn't seem to do anything. I also tried it like this: gadgets.util.registerOnLoadHandler(function() {gadgets.window.adjustHeight();}); but still the height didn't change.

Here is the full gadget code:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="movie quote of the day" directory_title="movie quote of the day" description="a new movie quote each day from mqotd.com" title_url="http://mqotd.com" author="adevland" author_email="[email protected]" screenshot="http://a.imageshack.us/img405/5484/mqotd.jpg" thumbnail="http://a.imageshack.us/img838/508/mqotdthumb.png" scrolling="false" width="212" height="200">
    <Require feature="dynamic-height"/>
  </ModulePrefs>
  <Content type="html">
  <![CDATA[
    <div id="mqotd_0"></div>
    <script type="text/javascript" src="http://mqotd.com/mqotd.php"&gt;&lt;/script&gt;
    <script type="text/javascript">getMqotd(0); gadgets.util.registerOnLoadHandler(function() {gadgets.window.adjustHeight();});</script>
  ]]>
  </Content>
</Module>

Am I doing something wrong?