123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: hal
- // (C) Copyright IBM Corp. 2003, 2017.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var G_DialogResizeHandler={};G_DialogResizeHandler.F_OnDragStart=function(_hO92,_hO3,_h0J){if(!this._hX71&&G_HAL.M_oLibraries["hal"]["enableDialogResizeAnimation"]&&G_BrowserInfo.M_bIsIE){this._hX71=true;U_DOM.F_SetOpacity(_hO92.tbl, 50);if(G_HAL.M_oLibraries["hal"]["enableDialogChrome"]){_hO92.tbl.parentNode.firstChild.style.visibility="hidden";}}return true;};G_DialogResizeHandler.F_OnDragOver=function(e,_hO92,_hO3,_hR52,_h0J){var tbl=_hO92.tbl;var div=tbl.parentNode;var _hMZ1=Math.F_NonNeg(((G_BrowserInfo.M_bIsTouchDevice&&!G_BrowserInfo.M_bIsPointerEnabled)?e.touches[0]:e).clientY-div.offsetTop+_hO92.clientY);var _h852=Math.F_NonNeg(((G_BrowserInfo.M_bIsTouchDevice&&!G_BrowserInfo.M_bIsPointerEnabled)?e.touches[0]:e).clientX-div.offsetLeft+_hO92.clientX);var _h402=_hO92._h702.F_GetDialogInstance(tbl);var _hTA1=_h402._h25(_hMZ1);var _hQH1=_h402._h47(_h852);var _h8F=_h402.F_GetDimensions();var _hOH1=_h8F.height;var _hUO1=_h8F.width;if(!_h402._hFE2){_h402._hFE2=document.getElementById(_h402._hQO1);}var _hSE1=false;if(_hTA1>=_h402.F_GetMinimumDialogBodyHeight()){_hSE1=true;tbl.style.height=_hMZ1+"px";_h402._hFE2.style.height=_hTA1+"px";_hOH1=_hMZ1;}else{_h402._hFE2.style.height=_h402.F_GetMinimumDialogBodyHeight()+"px";}if(_hQH1>=_h402.F_GetMinimumDialogBodyWidth()){_hSE1=true;tbl.style.width=_h852+"px";_h402._hFE2.style.width=_hQH1+"px";_hUO1=_h852;}else{_h402._hFE2.style.width=_h402.F_GetMinimumDialogBodyWidth()+"px";}if(_hSE1){_h402.F_SetDimensions(_hUO1, _hOH1);_h402.F_Dialog_OnResize(_h402.F_GetDialogBodyHeight(), _h402.F_GetDialogBodyWidth());}_hO92._h702.F_UpdateIFramePositions();};G_DialogResizeHandler.F_OnDragDrop=function(e,_hO92,_h202){this._hY71(_hO92.tbl);};G_DialogResizeHandler.F_OnDragCancel=function(_hO92){this._hY71(_hO92.tbl);};G_DialogResizeHandler._hY71=function(tbl){if(G_HAL.M_oLibraries["hal"]["enableDialogResizeAnimation"]&&G_BrowserInfo.M_bIsIE){U_DOM.F_RemoveOpacity(tbl);if(G_HAL.M_oLibraries["hal"]["enableDialogChrome"]){tbl.parentNode.firstChild.style.visibility="visible";}this._hX71=false;}};
|