確実に !? ガジェットの高さを自動調整する方法とその jQuery Plugin を公開しました

129 views
Skip to first unread message

なかじまん

unread,
Nov 28, 2009, 3:10:24 AM11/28/09
to OpenSocial jQuery Discussion
こんばんは。なかじまんです。

gadgets.window.adjustHeight で、確実に !? ガジェットの高さを自動調整する方法
http://blog.lrlab.to/2009/11/gadgetswindowadjustheight.html

を jQuery Plugin にして公開しました。

OpenSocial jQuery autoHeight is plugin to adjust height of Gadgets
automatically all the time.
http://code.google.com/p/opensocial-jquery/wiki/PluginAutoHeight

次のように ready イベントの中で、はじめに1度だけ呼び出せば、
ガジェットの高さを自動調整し続けます。

<script type="text/javascript" src="opensocial-jquery.js"></script>
<script type="text/javascript" src="opensocial-jquery.autoHeight.js"></
script>
<script type="text/javascript">
$(document).ready(function() {
$(window).autoHeight();
});
</script>
Reply all
Reply to author
Forward
0 new messages