だぶだぶOpera

Opera Widjet 開発手記

Opera Widjetのウインドウサイズ

ウィジェットを作るときに、ウインドウサイズは極力小さくした方が良いようです。
時計を作ったときに、サポートからチェック結果が返ってきました。

After downloading and analysing the widget i found the height/width specified in config.xml is 380/560 but i dont think widget does need that big height/width always. So it will be nice if you can use window.resizeTo() or window.resizeBy() to change the width/height at runtime from javascript. Adding extra height/width will reduce performance of widget and will make it work bit slow. Also it will display blue background on linux platform. You can see this by adding style attribute to html tag <html style="background:blue;">.



要約すると、

・実際に使用するウインドウサイズよりも大きなサイズを使うと、リソースを無駄に消費するので、必要なときにwindow.resizeTo()やwindow.resizeBy()を使うのがよい。
・Linuxでは背景色が青くなるので、ブラウザ画面が隠れてしまう。
・Linux環境をエミュレートする方法として、<html style="background:blue;">というのが使える。

実際にリリースするときは、一応、<html style="background-color: transparent;">をつけておくのが良さそうです。

スペース、nbsp、emsp比較DOM-Table rows、cols

Write a comment

New comments have been disabled for this post.

June 2012
M T W T F S S
May 2012July 2012
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30