This commit is contained in:
2024-11-05 10:47:20 -07:00
parent c801b1ff51
commit 5315c47fcd
276 changed files with 2990 additions and 6370 deletions

View File

@@ -1 +1 @@
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups");Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup=function(n){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.initializeBase(this,[n]);this._relatedElement=null};Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.prototype={get_relatedElement:function(){return this._relatedElement},set_relatedElement:function(n){this._relatedElement=n},open:function(n){var h,f,e,o,s;if(this._relatedElement!=null){if(h=this,!this.checkCorrectLoaded(function(){h.open(n)}))return;for(var c=$common.getLocation(this._relatedElement),i=c.x,r=c.y+this._relatedElement.offsetHeight,t=this.get_element().parentNode;t&&t.tagName&&t.tagName.toUpperCase()!="BODY";){if(f=Sys.Extended.UI.HtmlEditor.getStyle(t,"position"),f=="absolute"||f=="fixed"){e=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(t,"top"));o=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(t,"left"));isNaN(e)||isNaN(o)||(i-=o,r-=e);break}else f=="relative"&&(s=$common.getLocation(t),i-=s.x,r-=s.y);t=t.parentNode}var u=Sys.Extended.UI.HtmlEditor.getClientViewportElement(this._iframe),l=u.clientWidth+u.scrollLeft,a=u.clientHeight+u.scrollTop;r<u.scrollTop&&(r=u.scrollTop);i<u.scrollLeft&&(i=u.scrollLeft);r+this._iframe.offsetHeight>a&&(r-=r+this._iframe.offsetHeight-a);i+this._iframe.offsetWidth>l&&(i-=i+this._iframe.offsetWidth-l);Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"open",[n,r,i])}},close:function(n){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"close",[n])},initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"dispose")}};Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup",Sys.Extended.UI.HtmlEditor.Popups.Popup);
Type.registerNamespace("Sys.Extended.UI.HtmlEditor.Popups"),Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup=function(t){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.initializeBase(this,[t]),this._relatedElement=null},Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.prototype={get_relatedElement:function(){return this._relatedElement},set_relatedElement:function(t){this._relatedElement=t},open:function(t){if(null!=this._relatedElement){var e=this;if(!this.checkCorrectLoaded(function(){e.open(t)}))return;for(var o=$common.getLocation(this._relatedElement),i=o.x,s=o.y+this._relatedElement.offsetHeight,d=this.get_element().parentNode;d&&d.tagName&&"BODY"!=d.tagName.toUpperCase();){var l=Sys.Extended.UI.HtmlEditor.getStyle(d,"position");if("absolute"==l||"fixed"==l){var n=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(d,"top")),p=parseInt(Sys.Extended.UI.HtmlEditor.getStyle(d,"left"));isNaN(n)||isNaN(p)||(i-=p,s-=n);break}if("relative"==l){var a=$common.getLocation(d);i-=a.x,s-=a.y}d=d.parentNode}var r=Sys.Extended.UI.HtmlEditor.getClientViewportElement(this._iframe),h=r.clientWidth+r.scrollLeft,c=r.clientHeight+r.scrollTop;s<r.scrollTop&&(s=r.scrollTop),i<r.scrollLeft&&(i=r.scrollLeft),s+this._iframe.offsetHeight>c&&(s-=s+this._iframe.offsetHeight-c),i+this._iframe.offsetWidth>h&&(i-=i+this._iframe.offsetWidth-h),Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"open",[t,s,i])}},close:function(t){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"close",[t])},initialize:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.callBaseMethod(this,"dispose")}},Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup.registerClass("Sys.Extended.UI.HtmlEditor.Popups.AttachedPopup",Sys.Extended.UI.HtmlEditor.Popups.Popup);