Opera Widjetのウインドウサイズ
Wednesday, January 23, 2008 9:02:34 AM
時計を作ったときに、サポートからチェック結果が返ってきました。
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;">をつけておくのが良さそうです。











