Changeset 132
- Timestamp:
- 09/14/08 21:50:45 (4 months ago)
- Files:
-
- trunk/lily/lily/chrome/content/components/iframe.js (modified) (3 diffs)
- trunk/lily/lily/chrome/content/externals/googledotmap.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/iframe.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/jquerydotcolorpicker.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/subpatch.js (modified) (3 diffs)
- trunk/lily/lily/chrome/content/externals/xuldottree.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/externals/yuidotcalendar.js (modified) (1 diff)
- trunk/lily/lily/chrome/content/object/base.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lily/lily/chrome/content/components/iframe.js
r125 r132 78 78 79 79 //pass the calling context a ref to the view 80 parent.ui=new LilyObjectView(parent,'< iframe src="'+src+'" scrolling="'+ scroll +'" id="'+parent.createElID("iframe")+'" style="height:100%;width:100%;margin:0px;border:0px;padding:0px;visibility:hidden"></iframe>');80 parent.ui=new LilyObjectView(parent,'<div style="height:100%" id="'+parent.createElID("iframe_wrapper")+'"><iframe src="'+src+'" scrolling="'+ scroll +'" id="'+parent.createElID("iframe")+'" style="height:100%;width:100%;margin:0px;border:0px;padding:0px;visibility:hidden"></iframe></div>'); 81 81 parent.ui.draw(); 82 82 … … 109 109 } else { 110 110 frameCover.style.visibility="visible"; 111 //frameCover.style.backgroundColor='red';111 //frameCover.style.backgroundColor='red'; 112 112 //frameCover.style.zIndex=9999; 113 113 frameCover.style.zIndex=parent.zIndex+1; … … 179 179 frameCover.style.zIndex=parent.zIndex+1; //this is a problem- needs to be tied to the zindex of the object 180 180 181 this.wrapper = parent.ui.getElByID(parent.createElID("iframe_wrapper")); 182 181 183 //try to set this 182 184 parent["frameCover"]=frameCover; trunk/lily/lily/chrome/content/externals/googledotmap.js
r128 r132 34 34 { 35 35 var thisPtr=this; 36 37 this.allowFont=false; //don't allow font changes 38 this.allowBorder=false; //no custom border 36 39 this.ui={}; 37 40 trunk/lily/lily/chrome/content/externals/iframe.js
r125 r132 136 136 137 137 iframe.objFrame.addEventListener("load",frameLoad,false); 138 this.controller.setNoBorders(this.noBorders); 138 this.controller.setNoBorders(this.noBorders); 139 this.displayElement = iframe.wrapper; 139 140 140 141 return this; trunk/lily/lily/chrome/content/externals/jquerydotcolorpicker.js
r128 r132 35 35 this.ui={}; 36 36 this.outlet1 = new this.outletClass("outlet1",this,"color hex string"); 37 this.resize=false; 37 this.resize=false; 38 this.allowFont=false; //don't allow font changes 39 this.allowBorder=false; //no custom border 38 40 39 41 function initColorPicker() { trunk/lily/lily/chrome/content/externals/subpatch.js
r87 r132 188 188 var sizeArr=LilyUtils.extractPatchSize(data); //get the patch size w/o having to eval the json. 189 189 var parentDir=(file.parent.isDirectory())?file.parent:null; //patch's parent dir. 190 thisPatch.obj = new LilyPatch(pid,Lily,sizeArr[0],sizeArr[1],false,{type:"iframe",win:thisPtr. displayElement,parent:thisPtr.parent.patchView.xulWin}); //call the patch constructor190 thisPatch.obj = new LilyPatch(pid,Lily,sizeArr[0],sizeArr[1],false,{type:"iframe",win:thisPtr.resizeElement,parent:thisPtr.parent.patchView.xulWin}); //call the patch constructor 191 191 192 192 thisPatch.obj.callback=function(){ … … 263 263 //create the new patch using the iframe 264 264 function frameLoad() { 265 thisPtr. displayElement.removeEventListener("load",frameLoad,true); //remove this so we don't loop265 thisPtr.resizeElement.removeEventListener("load",frameLoad,true); //remove this so we don't loop 266 266 if(thisPtr.fPath&&thisPatch.json&&thisPatch.file) { 267 267 openPatch(thisPatch.json,thisPatch.file); … … 276 276 var iframe=new LilyComponents._iframe(this,null,200,200,"no",frameLoad); //no scrolling 277 277 278 this.displayElement=this.resizeElement=iframe.objFrame; // 278 this.resizeElement=iframe.objFrame; // 279 this.displayElement=iframe.wrapper; 279 280 // this.displayElement.addEventListener("load",frameLoad,false); //we'll use this once for init only 280 281 this.controller.setNoBorders(true); trunk/lily/lily/chrome/content/externals/xuldottree.js
r128 r132 319 319 320 320 var iframe=new LilyComponents._iframe(this,"chrome://lily/content/lib/base.xul",200,200,"no",frameInit); 321 this.displayElement = iframe.wrapper; 321 322 322 323 function frameInit() { trunk/lily/lily/chrome/content/externals/yuidotcalendar.js
r131 r132 37 37 this.inlet1=new this.inletClass("inlet1",this, "date string"); 38 38 this.ui={}; 39 this.resize=false; 40 this.allowFont=false; //don't allow font changes 39 this.resize=false; //no resizing 40 this.allowFont=false; //don't allow font changes 41 this.allowBorder=false; //no custom border 41 42 42 43 this.today = new Date(); trunk/lily/lily/chrome/content/object/base.js
r131 r132 59 59 this.resetSize=true; //should we reset the object size and reflow on font size changes, etc 60 60 this.allowFont=true; //allow the font family/size/color changes 61 this.allowColor=true; //allow color changes 61 this.allowColor=true; //allow color changes 62 this.allowBorder=true; //no custom border 62 63 this.resize=true; //should the object be resizable 63 64 this.displayArgs=true; //should we see objects arguments (for non-UI objects only) 64 65 this.loadsSubPatchByName = false; //true when a subpatch is invoked by name 65 66 this.hasBeenResized=false; //true when an extern has resized by hand. 66 this.isPaste=false; //true if we're creating this as a paste 67 this.isPaste=false; //true if we're creating this as a paste 67 68 68 69 this.ui=null; //to filled in when view instantiates … … 140 141 this.setBorderColor=function(bcolor,perm) { 141 142 142 if(bcolor ) {143 if(bcolor && this.allowBorder) { 143 144 var ui=this.controller.objView.getInputWrapper(); 144 145 … … 157 158 this.setBorderStyle=function(bstyle,perm) { 158 159 159 if(bstyle ) {160 if(bstyle && this.allowBorder) { 160 161 var ui=this.controller.objView.getInputWrapper(); 161 162 … … 187 188 this.setBorderSize=function(bsize,perm) { 188 189 189 if(bsize ) {190 if(bsize && this.allowBorder) { 190 191 var ui=this.controller.objView.getInputWrapper(); 191 192
