<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,7 +14,7 @@
 	@author     Fernando Trasvi&#241;a (@azendal)
 	@core team  Sergio de la Garza (@sgarza), Javier Ayala (@javi_ayala)
 	@copyright  2009 Elastic CSS framework
-	@version    2.0.2
+	@version    2.0.3
 */
 (function($){
 	var CStyle = function (element, pseudoElement) {
@@ -113,6 +113,7 @@
 					ll = eecs.length;
 					if(ll &gt; 0){
 						eecfw = econw - ( ecsw + efcsw );
+						if(eecfw &lt;= 0){ continue; }
 						eecrw = eecfw / ll;
 						eecw  = Math.round( eecrw );
 						eecsw = eecw * ll;
@@ -172,7 +173,7 @@
 
 	var Elastic = window.Elastic;
 
-	Elastic.version = '2.0.2';
+	Elastic.version = '2.0.3';
 
 	Elastic.reset = function Elastic_reset(context){
 		var doc = $(document);</diff>
      <filename>library/js/elastic.js</filename>
    </modified>
    <modified>
      <diff>@@ -10,4 +10,4 @@
 	@copyright  2009 Elastic CSS framework
 	@version    2.0.2
 */
-(function($){var CStyle=function(element,pseudoElement){if(window.getComputedStyle){return window.getComputedStyle(element,pseudoElement);}else{return element.currentStyle;}};var width=function(element){var width=CStyle(element).width;if(width=='auto'||width.indexOf('px')&lt;0){return $(element).width();}else{return parseFloat(width);}};window.Elastic=function Elastic(context){var r,ra,i,j,k,l,il,jl,kl,ll,econs,econ,econw,econclass,ecols,ecol,ecolclass,eg,egml,egcl,egnl,ecrw,ecw,escol,rp,ig,efcs,efcsw,eecs,eecsw,eecw,eecrw,ecs,ecsw,ec,ecclass,eecfw,ecolminw,ecolmaxw,egreg=/(^|\s+)on\-(\d+)(\s+|$)/,esreg=/(^|\s+)span\-(\d+)(\s+|$)/,eareg=/(^|\s+)adaptive\-(\d+)\-(\d+)(\s+|$)/;eg=[];egcl=egnl=0;econs=$.find('.columns',context);for(i=0,il=econs.length;i&lt;il;i++){econ=econs[i];econclass=econ.className;if(econclass.indexOf('on-')&gt;-1&amp;&amp;egreg.test(econclass)){egml=Number(RegExp.$2);}else{egml=$.find('&gt; .column, &gt; .container &gt; .column',econ).length;}econ=$.find('&gt; .container',econ)[0]||econ;econw=width(econ);ecrw=econw/egml;ecw=Math.round(ecrw);if(econclass.indexOf('adaptive-')&gt;-1&amp;&amp;eareg.test(econclass)){ecolminw=Number(RegExp.$2);ecolmaxw=Number(RegExp.$3);if(ecw&gt;ecolmaxw){while(ecw&gt;ecolmaxw){egml=egml+1;ecrw=econw/egml;ecw=Math.round(ecrw);}}else if(ecw&lt;ecolminw){while(ecw&lt;ecolminw){egml=egml-1;ecrw=econw/egml;ecw=Math.round(ecrw);}}}ecols=$.find('&gt; .column',econ);for(j=0,jl=ecols.length;j&lt;jl;j++){efcs=[];eecs=[];ecs=[];rp=ig=efcsw=ecsw=0;ecol=ecols[j];ecolclass=ecol.className;escol=1;if(ecolclass.indexOf('span-')&gt;-1&amp;&amp;esreg.test(ecolclass)){escol=Number(RegExp.$2);}ecol.escol=escol=((escol&lt;=egml)?escol:egml);egnl+=escol;if(egnl==egml||j==(jl-1)||ecolclass.indexOf('final')&gt;-1){eg.push(ecol);egcl=0;rp=1;}else if(egnl&lt;egml){eg.push(ecol);egcl=egnl;}else if(egnl&gt;egml){egcl=escol;rp=1;ig=1;}if(rp){for(k=0,kl=eg.length;k&lt;kl;k++){ec=eg[k];ecclass=ec.className;if(ecclass.indexOf('fixed')&gt;-1){efcs.push(ec);efcsw+=width(ec);}else if(ecclass.indexOf('elastic')&gt;-1){eecs.push(ec);}else{ecs.push(ec);if(ec==eg[kl-1]){ec.style.width=Math.round(ecrw*ec.escol)+'px';}else{ec.style.width=Math.round(ecw*ec.escol)+'px';}ecsw=ecsw+width(ec);}}ll=eecs.length;if(ll&gt;0){eecfw=econw-(ecsw+efcsw);eecrw=eecfw/ll;eecw=Math.round(eecrw);eecsw=eecw*ll;for(l=0;l&lt;ll;l++){eecs[l].style.width=eecw+'px';}if(eecsw&gt;eecfw){ra=eecsw-eecfw+1;for(r=1;r&lt;ra;r++){eecs[eecs.length-r].style.width=(eecw-1)+'px';}}else if(eecsw&lt;eecfw){ra=eecfw-eecsw+1;for(r=1;r&lt;ra;r++){eecs[eecs.length-r].style.width=(eecw+1)+'px';}}var tcw=0;for(var f=0;f&lt;ll-1;f++){tcw+=Number(eecs[f].style.width.replace('px',''));}eecs[ll-1].style.width=(econw-(ecsw+efcsw+(tcw)))+'px';}else if(ecol.escol==egml&amp;&amp;efcs.length===0){ecol.style.width=econw+'px';}else if(ecs.length&gt;0&amp;&amp;efcs.length===0&amp;&amp;egnl==egml){if(ecsw&gt;econw){ra=ecsw-econw+1;for(r=1;r&lt;ra;r++){ecs[ecs.length-r].style.width=((ecw-1)*ecs[ecs.length-r].escol)+'px';}}else if(ecsw&lt;econw){ra=econw-ecsw+1;for(r=1;r&lt;ra;r++){ecs[ecs.length-r].style.width=((ecw+1)*ecs[ecs.length-r].escol)+'px';}}var tcw=0;for(var f=0;f&lt;ecs.length-1;f++){tcw+=Number(ecs[f].style.width.replace('px',''));}ec.style.width=(econw-(tcw))+'px';}else if(egnl&lt;egml&amp;&amp;ecolclass.indexOf('final')&gt;-1){ecol.style['margin'+((econclass.indexOf('inverted')&gt;-1)?'Left':'Right')]=(econw-ecsw-efcsw)+'px';}eg=[];egnl=0;}if(ig){eg=[ecol];egnl=escol;}}}for(i in Elastic.helpers){if(Elastic.helpers.hasOwnProperty(i)){Elastic.helpers[i](context);}}};var Elastic=window.Elastic;Elastic.version='2.0.2';Elastic.reset=function Elastic_reset(context){var doc=$(document);doc.trigger('elastic:beforeReset');var i,w,wl,h,hl,p,pl,m,ml;h=$.find('.same-height &gt; *, .full-height, .elastic-height',context);for(i=0,hl=h.length;i&lt;hl;i++){h[i].style.height='';}p=$.find('.vertical-center, .center, .bottom',context);for(i=0,pl=p.length;i&lt;pl;i++){p[i].parentNode.style.paddingTop='';p[i].parentNode.style.height='';}w=$.find('.column:not(.fixed), .full-width',context);for(i=0,wl=w.length;i&lt;wl;i++){w[i].style.width='';}m=$.find('.column.final',context);for(i=0,ml=m.length;i&lt;ml;i++){m[i].style.marginLeft='';m[i].style.marginRight='';}doc.trigger('elastic:reset');};Elastic.refresh=function Elastic_refresh(context){var doc=$(document);doc.trigger('elastic:beforeRefresh');Elastic.reset(context);Elastic(context);doc.trigger('elastic:refresh');};Elastic.configuration={refreshOnResize:true};Elastic.helpers={'full-width':function Elastic_helper_fullWidth(context){var i,$el;var els=$.find('.full-width',context);var elsl=els.length;for(i=0;i&lt;elsl;i++){$el=$(els[i]);$el.width($el.parent().width()-($el.outerWidth(true)-$el.width()));}},'same-height':function Elastic_helper_sameHeight(context){$('.same-height',context).each(function(){var columns=$('&gt; *',this);var maxHeight=0;columns.each(function(){var currentHeight=$(this).outerHeight(true);maxHeight=(maxHeight&gt;currentHeight)?maxHeight:currentHeight;}).each(function(){$(this).css('height',maxHeight);});});},'full-height':function Elastic_helper_fullHeight(context){$('.full-height',context).each(function(){var _this=$(this);_this.css('height',$(this.parentNode).height()-(_this.outerHeight(true)-_this.height()));});},'elastic-height':function Elastic_helper_elasticHeight(context){$('.elastic-height',context).each(function(){var _this=$(this);var h=0;$('&gt; *:not(.elastic-height)',this.parentNode).each(function(){h+=$(this).outerHeight(true);});_this.css('height',Math.round(_this.parent().height()-h));Elastic.refresh(this);});},'center':function Elastic_helper_center(context){$('.vertical-center, .center',context).each(function(){var parentNode=$(this.parentNode);var paddingTop=Math.round((parentNode.height()-$(this).outerHeight(true))/2);parentNode.css({paddingTop:paddingTop+'px',height:(parentNode.css('height'))?(parentNode.outerHeight()-paddingTop):''});});},'bottom':function Elastic_helper_bottom(context){$('.bottom',context).each(function(){var parentNode=$(this.parentNode);var paddingTop=Math.round(parentNode.height()-$(this).outerHeight(true));parentNode.css({paddingTop:paddingTop+'px',height:(parentNode.css('height'))?(parentNode.outerHeight()-paddingTop):''});});}};$(document).bind('elastic:beforeInitialize',function(){var r=/(^|\s+)display\s+([\w\_\-\d]+)(\s+|$)/;$('.display').each(function Elastic_layout(){r.test(this.className);var c='.position-'+RegExp.$2;$(c).removeClass(c).appendTo(this);});});})(jQuery);jQuery(window).bind('load',function(){var doc=jQuery(document);var iw=document.body.clientWidth;doc.trigger('elastic:beforeInitialize');Elastic();if(iw!=document.body.clientWidth){Elastic.refresh();}jQuery(window).bind('resize',function Elastic_resizeHandler(){if(Elastic.configuration.refreshOnResize){Elastic.refresh();}});doc.bind('elastic',Elastic.refresh);doc.trigger('elastic:initialize');});
+(function($){var CStyle=function(element,pseudoElement){if(window.getComputedStyle){return window.getComputedStyle(element,pseudoElement)}else{return element.currentStyle}};var width=function(element){var width=CStyle(element).width;if(width==&quot;auto&quot;||width.indexOf(&quot;px&quot;)&lt;0){return $(element).width()}else{return parseFloat(width)}};window.Elastic=function Elastic(context){var r,ra,i,j,k,l,il,jl,kl,ll,econs,econ,econw,econclass,ecols,ecol,ecolclass,eg,egml,egcl,egnl,ecrw,ecw,escol,rp,ig,efcs,efcsw,eecs,eecsw,eecw,eecrw,ecs,ecsw,ec,ecclass,eecfw,ecolminw,ecolmaxw,egreg=/(^|\s+)on\-(\d+)(\s+|$)/,esreg=/(^|\s+)span\-(\d+)(\s+|$)/,eareg=/(^|\s+)adaptive\-(\d+)\-(\d+)(\s+|$)/;eg=[];egcl=egnl=0;econs=$.find(&quot;.columns&quot;,context);for(i=0,il=econs.length;i&lt;il;i++){econ=econs[i];econclass=econ.className;if(econclass.indexOf(&quot;on-&quot;)&gt;-1&amp;&amp;egreg.test(econclass)){egml=Number(RegExp.$2)}else{egml=$.find(&quot;&gt; .column, &gt; .container &gt; .column&quot;,econ).length}econ=$.find(&quot;&gt; .container&quot;,econ)[0]||econ;econw=width(econ);ecrw=econw/egml;ecw=Math.round(ecrw);if(econclass.indexOf(&quot;adaptive-&quot;)&gt;-1&amp;&amp;eareg.test(econclass)){ecolminw=Number(RegExp.$2);ecolmaxw=Number(RegExp.$3);if(ecw&gt;ecolmaxw){while(ecw&gt;ecolmaxw){egml=egml+1;ecrw=econw/egml;ecw=Math.round(ecrw)}}else{if(ecw&lt;ecolminw){while(ecw&lt;ecolminw){egml=egml-1;ecrw=econw/egml;ecw=Math.round(ecrw)}}}}ecols=$.find(&quot;&gt; .column&quot;,econ);for(j=0,jl=ecols.length;j&lt;jl;j++){efcs=[];eecs=[];ecs=[];rp=ig=efcsw=ecsw=0;ecol=ecols[j];ecolclass=ecol.className;escol=1;if(ecolclass.indexOf(&quot;span-&quot;)&gt;-1&amp;&amp;esreg.test(ecolclass)){escol=Number(RegExp.$2)}ecol.escol=escol=((escol&lt;=egml)?escol:egml);egnl+=escol;if(egnl==egml||j==(jl-1)||ecolclass.indexOf(&quot;final&quot;)&gt;-1){eg.push(ecol);egcl=0;rp=1}else{if(egnl&lt;egml){eg.push(ecol);egcl=egnl}else{if(egnl&gt;egml){egcl=escol;rp=1;ig=1}}}if(rp){for(k=0,kl=eg.length;k&lt;kl;k++){ec=eg[k];ecclass=ec.className;if(ecclass.indexOf(&quot;fixed&quot;)&gt;-1){efcs.push(ec);efcsw+=width(ec)}else{if(ecclass.indexOf(&quot;elastic&quot;)&gt;-1){eecs.push(ec)}else{ecs.push(ec);if(ec==eg[kl-1]){ec.style.width=Math.round(ecrw*ec.escol)+&quot;px&quot;}else{ec.style.width=Math.round(ecw*ec.escol)+&quot;px&quot;}ecsw=ecsw+width(ec)}}}ll=eecs.length;if(ll&gt;0){eecfw=econw-(ecsw+efcsw);if(eecfw&lt;=0){continue}eecrw=eecfw/ll;eecw=Math.round(eecrw);eecsw=eecw*ll;for(l=0;l&lt;ll;l++){eecs[l].style.width=eecw+&quot;px&quot;}if(eecsw&gt;eecfw){ra=eecsw-eecfw+1;for(r=1;r&lt;ra;r++){eecs[eecs.length-r].style.width=(eecw-1)+&quot;px&quot;}}else{if(eecsw&lt;eecfw){ra=eecfw-eecsw+1;for(r=1;r&lt;ra;r++){eecs[eecs.length-r].style.width=(eecw+1)+&quot;px&quot;}}}var tcw=0;for(var f=0;f&lt;ll-1;f++){tcw+=Number(eecs[f].style.width.replace(&quot;px&quot;,&quot;&quot;))}eecs[ll-1].style.width=(econw-(ecsw+efcsw+(tcw)))+&quot;px&quot;}else{if(ecol.escol==egml&amp;&amp;efcs.length===0){ecol.style.width=econw+&quot;px&quot;}else{if(ecs.length&gt;0&amp;&amp;efcs.length===0&amp;&amp;egnl==egml){if(ecsw&gt;econw){ra=ecsw-econw+1;for(r=1;r&lt;ra;r++){ecs[ecs.length-r].style.width=((ecw-1)*ecs[ecs.length-r].escol)+&quot;px&quot;}}else{if(ecsw&lt;econw){ra=econw-ecsw+1;for(r=1;r&lt;ra;r++){ecs[ecs.length-r].style.width=((ecw+1)*ecs[ecs.length-r].escol)+&quot;px&quot;}}}var tcw=0;for(var f=0;f&lt;ecs.length-1;f++){tcw+=Number(ecs[f].style.width.replace(&quot;px&quot;,&quot;&quot;))}ec.style.width=(econw-(tcw))+&quot;px&quot;}else{if(egnl&lt;egml&amp;&amp;ecolclass.indexOf(&quot;final&quot;)&gt;-1){ecol.style[&quot;margin&quot;+((econclass.indexOf(&quot;inverted&quot;)&gt;-1)?&quot;Left&quot;:&quot;Right&quot;)]=(econw-ecsw-efcsw)+&quot;px&quot;}}}}eg=[];egnl=0}if(ig){eg=[ecol];egnl=escol}}}for(i in Elastic.helpers){if(Elastic.helpers.hasOwnProperty(i)){Elastic.helpers[i](context)}}};var Elastic=window.Elastic;Elastic.version=&quot;2.0.3&quot;;Elastic.reset=function Elastic_reset(context){var doc=$(document);doc.trigger(&quot;elastic:beforeReset&quot;);var i,w,wl,h,hl,p,pl,m,ml;h=$.find(&quot;.same-height &gt; *, .full-height, .elastic-height&quot;,context);for(i=0,hl=h.length;i&lt;hl;i++){h[i].style.height=&quot;&quot;}p=$.find(&quot;.vertical-center, .center, .bottom&quot;,context);for(i=0,pl=p.length;i&lt;pl;i++){p[i].parentNode.style.paddingTop=&quot;&quot;;p[i].parentNode.style.height=&quot;&quot;}w=$.find(&quot;.column:not(.fixed), .full-width&quot;,context);for(i=0,wl=w.length;i&lt;wl;i++){w[i].style.width=&quot;&quot;}m=$.find(&quot;.column.final&quot;,context);for(i=0,ml=m.length;i&lt;ml;i++){m[i].style.marginLeft=&quot;&quot;;m[i].style.marginRight=&quot;&quot;}doc.trigger(&quot;elastic:reset&quot;)};Elastic.refresh=function Elastic_refresh(context){var doc=$(document);doc.trigger(&quot;elastic:beforeRefresh&quot;);Elastic.reset(context);Elastic(context);doc.trigger(&quot;elastic:refresh&quot;)};Elastic.configuration={refreshOnResize:true};Elastic.helpers={&quot;full-width&quot;:function Elastic_helper_fullWidth(context){var i,$el;var els=$.find(&quot;.full-width&quot;,context);var elsl=els.length;for(i=0;i&lt;elsl;i++){$el=$(els[i]);$el.width($el.parent().width()-($el.outerWidth(true)-$el.width()))}},&quot;same-height&quot;:function Elastic_helper_sameHeight(context){$(&quot;.same-height&quot;,context).each(function(){var columns=$(&quot;&gt; *&quot;,this);var maxHeight=0;columns.each(function(){var currentHeight=$(this).outerHeight(true);maxHeight=(maxHeight&gt;currentHeight)?maxHeight:currentHeight}).each(function(){$(this).css(&quot;height&quot;,maxHeight)})})},&quot;full-height&quot;:function Elastic_helper_fullHeight(context){$(&quot;.full-height&quot;,context).each(function(){var _this=$(this);_this.css(&quot;height&quot;,$(this.parentNode).height()-(_this.outerHeight(true)-_this.height()))})},&quot;elastic-height&quot;:function Elastic_helper_elasticHeight(context){$(&quot;.elastic-height&quot;,context).each(function(){var _this=$(this);var h=0;$(&quot;&gt; *:not(.elastic-height)&quot;,this.parentNode).each(function(){h+=$(this).outerHeight(true)});_this.css(&quot;height&quot;,Math.round(_this.parent().height()-h));Elastic.refresh(this)})},&quot;center&quot;:function Elastic_helper_center(context){$(&quot;.vertical-center, .center&quot;,context).each(function(){var parentNode=$(this.parentNode);var paddingTop=Math.round((parentNode.height()-$(this).outerHeight(true))/2);parentNode.css({paddingTop:paddingTop+&quot;px&quot;,height:(parentNode.css(&quot;height&quot;))?(parentNode.outerHeight()-paddingTop):&quot;&quot;})})},&quot;bottom&quot;:function Elastic_helper_bottom(context){$(&quot;.bottom&quot;,context).each(function(){var parentNode=$(this.parentNode);var paddingTop=Math.round(parentNode.height()-$(this).outerHeight(true));parentNode.css({paddingTop:paddingTop+&quot;px&quot;,height:(parentNode.css(&quot;height&quot;))?(parentNode.outerHeight()-paddingTop):&quot;&quot;})})}};$(document).bind(&quot;elastic:beforeInitialize&quot;,function(){var r=/(^|\s+)display\s+([\w\_\-\d]+)(\s+|$)/;$(&quot;.display&quot;).each(function Elastic_layout(){r.test(this.className);var c=&quot;.position-&quot;+RegExp.$2;$(c).removeClass(c).appendTo(this)})})})(jQuery);jQuery(window).bind(&quot;load&quot;,function(){var doc=jQuery(document);var iw=document.body.clientWidth;doc.trigger(&quot;elastic:beforeInitialize&quot;);Elastic();if(iw!=document.body.clientWidth){Elastic.refresh()}jQuery(window).bind(&quot;resize&quot;,function Elastic_resizeHandler(){if(Elastic.configuration.refreshOnResize){Elastic.refresh()}});doc.bind(&quot;elastic&quot;,Elastic.refresh);doc.trigger(&quot;elastic:initialize&quot;)});</diff>
      <filename>production/elastic.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cc3234804bc157e7500e94144c8037964aa93f2a</id>
    </parent>
  </parents>
  <author>
    <name>fernando</name>
    <email>fernando@fernando-laptop.(none)</email>
  </author>
  <url>http://github.com/azendal/elastic/commit/153f29db7330121f641729ae408375a65e6759ae</url>
  <id>153f29db7330121f641729ae408375a65e6759ae</id>
  <committed-date>2009-11-03T14:58:33-08:00</committed-date>
  <authored-date>2009-11-03T14:58:33-08:00</authored-date>
  <message>elastic 2.0.3 better support for hidden elastic columns</message>
  <tree>af47f9f51897dc43e535b8e063bd6ceb46aacbe8</tree>
  <committer>
    <name>fernando</name>
    <email>fernando@fernando-laptop.(none)</email>
  </committer>
</commit>
