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"><![cdata[ 

but when goto gmail page html in scrolling mode. want make height same height take how remove scrolling ?? here screenshot of scrolling enter image description here

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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -