Project

General

Profile

« Previous | Next » 

Revision 1445

migration 3.6.003

View differences:

scSiLibOveride.uiwidget
1
<?xml version="1.0" encoding="UTF-8"?>
2
<sm:openUiWidget code="scSiLibOveride" info="Ce widget surcharge getContentHeight à usage des evals" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core">
3
	<sm:fillTemplateBuffers>
4
		<sm:standardLibrary codeLib="SiLib"/>
5
	</sm:fillTemplateBuffers>
6
	<sm:content>
7
		<script type="text/javascript" xmlns="http://www.w3.org/1999/xhtml"> scSiLib.getContentHeight = function(pContainer) {
8
 var vCh = pContainer.lastChild;
9
 var vH = 0;
10
 while(vCh &amp;&amp; ( vCh.nodeType != 1 || ! (vH = vCh.offsetHeight) || vCh.style.position==&quot;absolute&quot;) ) vCh = vCh.previousSibling;
11
 if(vCh) {
12
  return vCh.offsetTop + vH;
13
 }
14
 return Number.NaN;
15
}</script>
16
	</sm:content>
1
<?xml version="1.0" encoding="UTF-8"?><sm:openUiWidget xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" code="scSiLibOveride" info="Ce widget surcharge getContentHeight à usage des evals">
2
	<sm:fillTemplateBuffers>
3
		<sm:standardLibrary codeLib="SiLib"/>
4
	</sm:fillTemplateBuffers>
5
	<sm:content>
6
		<script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript"> scSiLib.getContentHeight = function(pContainer) {
7
 var vCh = pContainer.lastChild;
8
 var vH = 0;
9
 while(vCh &amp;&amp; ( vCh.nodeType != 1 || ! (vH = vCh.offsetHeight) || vCh.style.position=="absolute") ) vCh = vCh.previousSibling;
10
 if(vCh) {
11
  return vCh.offsetTop + vH;
12
 }
13
 return Number.NaN;
14
}</script>
15
	</sm:content>
17 16
</sm:openUiWidget>

Also available in: Unified diff