Uncommited changes synced
[gitlive] / NewBranch.bjs
index b566849..cd71cca 100644 (file)
          "* pack" : "add",
          "xtype" : "WebView",
          "$ xns" : "WebKit",
-         "| void loadTicket" : "(string tid) {\n\tif (tid == \"\") {\n\t\t_this.scrolled_window.el.hide();\n\t} else {\n\t\t_this.scrolled_window.el.show();\n\t}\n\t this.el.load_uri(\"http://www.google.com\");\n}\n"
+         "| void loadTicket" : "(string tid) {\n\tint h,w;\n\t_this.el.get_size(out w, out h);\n\t\n\tif (tid == \"\") {\n\t\t_this.scrolled_window.el.hide();\n\t\t_this.el.resize(w, 300);\n\t} else {\n\t\t_this.scrolled_window.el.show();\n\t\t_this.el.resize(w, 800);\n\t}\n\t this.el.load_uri(\"http://www.google.com\");\n}\n"
         }
        ]
       }