I was curious if there is a way to preset the height and width for the zoom area on a webpage. Currently I have a open web page view where I am viewing one webpage. And the page is huge and the user has to zoom in automatically. Is there a way that I can have that preset to a certain zoom area/size? If so, any suggestions on where I should drop that in as well? Thank you for your help in advace! -paul
var label = Titanium.UI.createLabel({ backgroundImage: "images.png", top: 0, width: "100%", height: "12%", textalign: "center", }) // new button var openWebpagenotification = Titanium.UI.createButton({ title:"Notification", backgroundImage: "images/button.png", width:"100%", height:"12%", top:"10%", id: "Notifications", url:"http://www.webpage/", }); openWebpagenotification.addEventListener("click", function(e){ // Create a window and add a webview to it that opens your url: var webviewWindow = Titanium.UI.createWindow({title: 'Notifications', fullscreen: false}); var myWebView = Ti.UI.createWebView({url:e.source.url}); webviewWindow.add(myWebView); // Will need a button to close the new window: var closeButton = Titanium.UI.createButton({title:'Close', style:Titanium.UI.iPhone.SystemButtonStyle.PLAIN}); webviewWindow.setLeftNavButton(closeButton); webviewWindow.open(); // Open your new window })
1 Answer
Your Answer
Think you can help? Login to answer this question!