google apps - How to use dynamic- height feature to be used -
i writing google gadget gmail. new gadgets.for gadget , wirte first html page converted module google gadget.i used module spec
<module> <moduleprefs title="cloud factor demo" scrolling="false" description="cloud factor demo design" author="ritesh mehandiratta" author_email="..." author_location="mountain view, ca"> <require feature="dynamic-height" /> <require feature="google.contentmatch"></require> </moduleprefs> <!-- define content type , display location. settings "html" , "card" required gmail contextual gadgets. --> <content type="html" view="card"><
by default, gadgets 200 pixels high. if want use dynamic height feature, follow steps below,
add <require feature="dynamic-height" /> in moduleprefs tag, u did. , whenever feel, height should refreshed, call gadgets.window.adjustheight();
example - if want done during page load,
<script> function onpageloaded() { gadgets.window.adjustheight(); } </script> <body onload="onpageloaded()"> for more info, follow google developers link - https://developers.google.com/gadgets/docs/ui#dyn_height
Comments
Post a Comment