var $AdfDhtmlPanelGridLayoutPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlPanelGridLayoutPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlPanelGridLayoutPeer", $AdfDhtmlPanelGridLayoutPeer$$);
$AdfDhtmlPanelGridLayoutPeer$$.$InitSubclass$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichPanelGridLayout.INLINE_STYLE)
};
$goog$exportSymbol$$("AdfDhtmlPanelGridLayoutPeer.InitSubclass", $AdfDhtmlPanelGridLayoutPeer$$.$InitSubclass$);
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentInlineStyleChanged$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ComponentInlineStyleChanged$$($component$$1269$$, $domElement$$337$$, $newValue$$104$$, $oldValue$$76$$) {
  var $gridRows_rootStyle$$12$$ = $domElement$$337$$.style, $display$$ = $gridRows_rootStyle$$12$$.display, $position$$7$$ = $gridRows_rootStyle$$12$$.position, $left$$17$$ = $gridRows_rootStyle$$12$$.left, $right$$5$$ = $gridRows_rootStyle$$12$$.right, $top$$22$$ = $gridRows_rootStyle$$12$$.top, $bottom$$5$$ = $gridRows_rootStyle$$12$$.bottom, $width$$30$$ = $gridRows_rootStyle$$12$$.width, $minWidth$$2$$ = $gridRows_rootStyle$$12$$.minWidth, $maxWidth$$7$$ = $gridRows_rootStyle$$12$$.maxWidth, 
  $height$$36$$ = $gridRows_rootStyle$$12$$.height, $minHeight$$2$$ = $gridRows_rootStyle$$12$$.minHeight, $maxHeight$$3$$ = $gridRows_rootStyle$$12$$.maxHeight, $stylesToAssign$$ = [];
  if("n" == $AdfAgent$$.$AGENT$.getAttribute($domElement$$337$$, "_afrm")) {
    var $gridColumns$$ = $gridRows_rootStyle$$12$$.$msGridColumns$, $gridRows_rootStyle$$12$$ = $gridRows_rootStyle$$12$$.$msGridRows$;
    $AdfDhtmlPanelGridLayoutPeer$$.$superclass$.$ComponentInlineStyleChanged$.call(this, $component$$1269$$, $domElement$$337$$, $newValue$$104$$, $oldValue$$76$$);
    $gridColumns$$ != $JSCompiler_alias_NULL$$ && "" != $gridColumns$$ && $stylesToAssign$$.push("-ms-grid-columns:" + $gridColumns$$);
    $gridRows_rootStyle$$12$$ != $JSCompiler_alias_NULL$$ && "" != $gridRows_rootStyle$$12$$ && $stylesToAssign$$.push("-ms-grid-rows:" + $gridRows_rootStyle$$12$$)
  }else {
    $AdfDhtmlPanelGridLayoutPeer$$.$superclass$.$ComponentInlineStyleChanged$.call(this, $component$$1269$$, $domElement$$337$$, $newValue$$104$$, $oldValue$$76$$), this.$_forcedDimensionStyles$ != $JSCompiler_alias_NULL$$ && $AdfDomUtils$$.$addInlineStyle$($domElement$$337$$, this.$_forcedDimensionStyles$, $JSCompiler_alias_TRUE$$)
  }
  $display$$ != $JSCompiler_alias_NULL$$ && "" != $display$$ && $stylesToAssign$$.push("display:" + $display$$);
  $position$$7$$ != $JSCompiler_alias_NULL$$ && "" != $position$$7$$ && $stylesToAssign$$.push("position:" + $position$$7$$);
  $left$$17$$ != $JSCompiler_alias_NULL$$ && "" != $left$$17$$ && $stylesToAssign$$.push("left:" + $left$$17$$);
  $right$$5$$ != $JSCompiler_alias_NULL$$ && "" != $right$$5$$ && $stylesToAssign$$.push("right:" + $right$$5$$);
  $top$$22$$ != $JSCompiler_alias_NULL$$ && "" != $top$$22$$ && $stylesToAssign$$.push("top:" + $top$$22$$);
  $bottom$$5$$ != $JSCompiler_alias_NULL$$ && "" != $bottom$$5$$ && $stylesToAssign$$.push("bottom:" + $bottom$$5$$);
  $width$$30$$ != $JSCompiler_alias_NULL$$ && "" != $width$$30$$ && $stylesToAssign$$.push("width:" + $width$$30$$);
  $minWidth$$2$$ != $JSCompiler_alias_NULL$$ && "" != $minWidth$$2$$ && $stylesToAssign$$.push("min-width:" + $minWidth$$2$$);
  $maxWidth$$7$$ != $JSCompiler_alias_NULL$$ && "" != $maxWidth$$7$$ && $stylesToAssign$$.push("max-width:" + $maxWidth$$7$$);
  $height$$36$$ != $JSCompiler_alias_NULL$$ && "" != $height$$36$$ && $stylesToAssign$$.push("height:" + $height$$36$$);
  $minHeight$$2$$ != $JSCompiler_alias_NULL$$ && "" != $minHeight$$2$$ && $stylesToAssign$$.push("min-height:" + $minHeight$$2$$);
  $maxHeight$$3$$ != $JSCompiler_alias_NULL$$ && "" != $maxHeight$$3$$ && $stylesToAssign$$.push("max-height:" + $maxHeight$$3$$);
  0 < $stylesToAssign$$.length && $AdfDomUtils$$.$addInlineStyle$($domElement$$337$$, $stylesToAssign$$.join(";"), $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ComponentInlineStyleChanged", {$ComponentInlineStyleChanged$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentInlineStyleChanged$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsResizeNotify$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsChildVisibilityChanges$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.needsChildVisibilityChanges", {$needsChildVisibilityChanges$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsChildVisibilityChanges$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ComponentRemoved$$($component$$1272$$) {
  this.$_registeredForDescendantResize$ && $AdfPage$$.$PAGE$.$__unregisterDescendantResizeNotifyComponent$($component$$1272$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ResizeNotify$$($component$$1273_oldWidth$$22$$, $columnsHavePercents_oldHeight$$21_rootElement$$107$$, $caresAboutDescendantResizeNotifications_newWidth$$26$$, $newHeight$$23$$) {
  $component$$1273_oldWidth$$22$$ = this.$getComponent$();
  if(this.$_forcedDimensionStyles$ != $JSCompiler_alias_NULL$$) {
    $columnsHavePercents_oldHeight$$21_rootElement$$107$$ = -1 != $JSCompiler_StaticMethods__getColumns$$(this, $component$$1273_oldWidth$$22$$).indexOf("%");
    var $rowsHavePercents$$ = -1 != $JSCompiler_StaticMethods__getRows$$(this, $component$$1273_oldWidth$$22$$).indexOf("%"), $columnsHaveAutos$$ = -1 != $JSCompiler_StaticMethods__getColumns$$(this, $component$$1273_oldWidth$$22$$).indexOf("auto"), $rowsHaveAutos$$ = -1 != $JSCompiler_StaticMethods__getRows$$(this, $component$$1273_oldWidth$$22$$).indexOf("auto");
    if(!$columnsHavePercents_oldHeight$$21_rootElement$$107$$ && !$rowsHavePercents$$ && !$columnsHaveAutos$$ && !$rowsHaveAutos$$) {
      return
    }
  }
  $columnsHavePercents_oldHeight$$21_rootElement$$107$$ = this.$getDomElement$();
  $AdfDomUtils$$.$getFirstChildElement$($columnsHavePercents_oldHeight$$21_rootElement$$107$$) != $JSCompiler_alias_NULL$$ && ($caresAboutDescendantResizeNotifications_newWidth$$26$$ = this.$_repositionPanes$($caresAboutDescendantResizeNotifications_newWidth$$26$$, $newHeight$$23$$), this.$_registeredForDescendantResize$ && !$caresAboutDescendantResizeNotifications_newWidth$$26$$ ? ($AdfPage$$.$PAGE$.$__unregisterDescendantResizeNotifyComponent$($component$$1273_oldWidth$$22$$), this.$_registeredForDescendantResize$ = 
  $JSCompiler_alias_FALSE$$) : $caresAboutDescendantResizeNotifications_newWidth$$26$$ && ($AdfPage$$.$PAGE$.$__registerDescendantResizeNotifyComponent$($component$$1273_oldWidth$$22$$), this.$_registeredForDescendantResize$ = $JSCompiler_alias_TRUE$$), "hidden" == $columnsHavePercents_oldHeight$$21_rootElement$$107$$.style.visibility && ($columnsHavePercents_oldHeight$$21_rootElement$$107$$.style.visibility = "visible"))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ChildVisibilityChanged$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ChildVisibilityChanged$$($childComponent$$14$$, $childDomElement$$6$$, $childVisible$$5$$) {
  return this.$_isChild$($childDomElement$$6$$) ? ($AdfDomUtils$$.setVisible($childDomElement$$6$$.parentNode, $childVisible$$5$$), this.$_repositionPanes$(), $AdfDomUtils$$.setVisible($childDomElement$$6$$, $childVisible$$5$$), $AdfPage$$.$PAGE$.$doResizeNotify$(this.$getComponent$()), $JSCompiler_alias_TRUE$$) : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ChildVisibilityChanged", {$ChildVisibilityChanged$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ChildVisibilityChanged$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_isChild$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_isChild$$($domNode$$63$$) {
  return $domNode$$63$$.parentNode.parentNode == this.$getDomElement$()
};
function $JSCompiler_StaticMethods__getColumns$$($JSCompiler_StaticMethods__getColumns$self$$, $component$$1274$$) {
  $JSCompiler_StaticMethods__getColumns$self$$.$_columns$ == $JSCompiler_alias_NULL$$ && ($JSCompiler_StaticMethods__getColumns$self$$.$_columns$ = $component$$1274$$.$getProperty$("_privateColumns"));
  return $JSCompiler_StaticMethods__getColumns$self$$.$_columns$
}
function $JSCompiler_StaticMethods__getRows$$($JSCompiler_StaticMethods__getRows$self$$, $component$$1275$$) {
  $JSCompiler_StaticMethods__getRows$self$$.$_rows$ == $JSCompiler_alias_NULL$$ && ($JSCompiler_StaticMethods__getRows$self$$.$_rows$ = $component$$1275$$.$getProperty$("_privateRows"));
  return $JSCompiler_StaticMethods__getRows$self$$.$_rows$
}
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_repositionPanes$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_repositionPanes$$($givenWidth$$, $givenHeight$$) {
  var $rootElement$$108$$ = this.$getDomElement$(), $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $AdfAgent$$.$AGENT$;
  if("n" == $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.getAttribute($rootElement$$108$$, "_afrm")) {
    return $JSCompiler_alias_FALSE$$
  }
  for(var $component$$1276$$ = this.$getComponent$(), $columns$$17_logger$$inline_3044$$ = $JSCompiler_StaticMethods__getColumns$$(this, $component$$1276$$).split(" "), $rows$$18$$ = $JSCompiler_StaticMethods__getRows$$(this, $component$$1276$$).split(" "), $lastCol$$ = 0, $lastRow$$1$$ = 0, $caresAboutDescendantResizeNotifications$$1_wrappers$$ = $AdfDomUtils$$.$getChildElements$($rootElement$$108$$), $childData$$ = [], $logger$$22$$ = $AdfLogger$$.$LOGGER$, $afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ = 
  $JSCompiler_alias_NULL$$, $childDataLength_columnsHavePercents$$1$$ = -1 != $JSCompiler_StaticMethods__getColumns$$(this, $component$$1276$$).indexOf("%"), $rowsHavePercents$$1_stylesToAssign$$1$$ = -1 != $JSCompiler_StaticMethods__getRows$$(this, $component$$1276$$).indexOf("%"), $col$$13_columnResult_forcedDimensionStyles$$, $cspan_permanentWidth$$, $permanentHeight_row$$49$$, $rowResult_rspan$$, $lastWrapperIndex_rtl$$8$$ = $caresAboutDescendantResizeNotifications$$1_wrappers$$.length - 1, $i$$376$$ = 
  0;$i$$376$$ <= $lastWrapperIndex_rtl$$8$$;$i$$376$$++) {
    var $wrapper$$18$$ = $caresAboutDescendantResizeNotifications$$1_wrappers$$[$i$$376$$], $child$$36$$ = $AdfDomUtils$$.$getFirstChildElement$($wrapper$$18$$);
    $child$$36$$ == $JSCompiler_alias_NULL$$ && ($child$$36$$ = $AdfDomUtils$$.$getFirstChildNodeByType$($wrapper$$18$$, 3));
    if($child$$36$$ == $JSCompiler_alias_NULL$$) {
      $i$$376$$ == $lastWrapperIndex_rtl$$8$$ && $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.getAttribute($wrapper$$18$$, "_afrr") != $JSCompiler_alias_NULL$$ ? $afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ = $wrapper$$18$$ : $logger$$22$$.finest("The grid layout (" + $component$$1276$$.$getClientId$() + ") has an empty grid cell under wrapper index \x3d " + $i$$376$$ + ", wrapper.innerHTML \x3d " + $wrapper$$18$$.innerHTML + 
      ")")
    }else {
      if(3 == $child$$36$$.nodeType || $AdfDomUtils$$.$isVisible$($child$$36$$)) {
        var $cellConstraints_valign$$9$$ = this.$_getAttribute$($agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$, $wrapper$$18$$, "_afrc", "1 1 1 1 stretch stretch").split(" ");
        $col$$13_columnResult_forcedDimensionStyles$$ = parseInt($cellConstraints_valign$$9$$[0], 10);
        $cspan_permanentWidth$$ = parseInt($cellConstraints_valign$$9$$[1], 10);
        $permanentHeight_row$$49$$ = parseInt($cellConstraints_valign$$9$$[2], 10);
        $rowResult_rspan$$ = parseInt($cellConstraints_valign$$9$$[3], 10);
        var $halign$$9$$ = $cellConstraints_valign$$9$$[4], $cellConstraints_valign$$9$$ = $cellConstraints_valign$$9$$[5];
        0 < $col$$13_columnResult_forcedDimensionStyles$$ && 0 < $permanentHeight_row$$49$$ && (data = {wrapper:$wrapper$$18$$, child:$child$$36$$, col:$col$$13_columnResult_forcedDimensionStyles$$, cspan:$cspan_permanentWidth$$, row:$permanentHeight_row$$49$$, rspan:$rowResult_rspan$$, halign:$halign$$9$$, valign:$cellConstraints_valign$$9$$}, $lastCol$$ = Math.max($lastCol$$, $col$$13_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$ - 1), $lastRow$$1$$ = Math.max($lastRow$$1$$, $permanentHeight_row$$49$$ + 
        $rowResult_rspan$$ - 1), $childData$$.push(data))
      }else {
        $logger$$22$$.$isLoggable$($AdfLogger$$.FINE) && $logger$$22$$.fine("The grid layout (" + $component$$1276$$.$getClientId$() + ") has an invisible child (wrapper index \x3d " + $i$$376$$ + ", child.id \x3d " + $child$$36$$.id + ", wrapper.innerHTML \x3d " + $wrapper$$18$$.innerHTML + ")")
      }
    }
  }
  if(0 == $childData$$.length) {
    return $logger$$22$$.$isLoggable$($AdfLogger$$.FINE) && $logger$$22$$.fine("The grid layout (" + $component$$1276$$.$getClientId$() + ") has no child data to process (wrappers.length \x3d " + $caresAboutDescendantResizeNotifications$$1_wrappers$$.length + ")."), $JSCompiler_alias_FALSE$$
  }
  $lastWrapperIndex_rtl$$8$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
  $caresAboutDescendantResizeNotifications$$1_wrappers$$ = $JSCompiler_alias_FALSE$$;
  $col$$13_columnResult_forcedDimensionStyles$$ = $JSCompiler_StaticMethods__resolveSizes$$($columns$$17_logger$$inline_3044$$, $lastCol$$, $rootElement$$108$$, $childData$$, "col", "cspan", "clientWidth", $givenWidth$$);
  $rowResult_rspan$$ = $JSCompiler_StaticMethods__resolveSizes$$($rows$$18$$, $lastRow$$1$$, $rootElement$$108$$, $childData$$, "row", "rspan", "clientHeight", $givenHeight$$);
  $cspan_permanentWidth$$ = $col$$13_columnResult_forcedDimensionStyles$$[0];
  $permanentHeight_row$$49$$ = $rowResult_rspan$$[0];
  $caresAboutDescendantResizeNotifications$$1_wrappers$$ || ($caresAboutDescendantResizeNotifications$$1_wrappers$$ = $col$$13_columnResult_forcedDimensionStyles$$[1] || $rowResult_rspan$$[1]);
  $afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ == $JSCompiler_alias_NULL$$ && ($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ = $rootElement$$108$$.ownerDocument.createElement("div"), $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.setAttribute($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$, "_afrr", "y"), $rootElement$$108$$.appendChild($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$));
  $AdfDomUtils$$.$addInlineStyle$($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$, "width:" + $cspan_permanentWidth$$ + "px;height:" + $permanentHeight_row$$49$$ + "px", $JSCompiler_alias_TRUE$$);
  $col$$13_columnResult_forcedDimensionStyles$$ = "";
  $childDataLength_columnsHavePercents$$1$$ || ($col$$13_columnResult_forcedDimensionStyles$$ += "max-width:" + $cspan_permanentWidth$$ + "px;min-width:" + $cspan_permanentWidth$$ + "px;");
  $rowsHavePercents$$1_stylesToAssign$$1$$ || ($col$$13_columnResult_forcedDimensionStyles$$ += "max-height:" + $permanentHeight_row$$49$$ + "px;min-height:" + $permanentHeight_row$$49$$ + "px;");
  "" != $col$$13_columnResult_forcedDimensionStyles$$ && ($AdfDomUtils$$.$addInlineStyle$($rootElement$$108$$, $col$$13_columnResult_forcedDimensionStyles$$, $JSCompiler_alias_TRUE$$), this.$_forcedDimensionStyles$ = $col$$13_columnResult_forcedDimensionStyles$$);
  $logger$$22$$.$isLoggable$($AdfLogger$$.FINE) && ($logger$$22$$.fine("Grid layout details for " + $component$$1276$$.$getClientId$() + " (childData.length \x3d " + $childData$$.length + ")"), $logger$$22$$.fine("Columns: " + $columns$$17_logger$$inline_3044$$), $logger$$22$$.fine("Rows: " + $rows$$18$$), $logger$$22$$.fine("Grid (permanent) dimensions: " + $cspan_permanentWidth$$ + "px and " + $permanentHeight_row$$49$$ + "px."));
  $childDataLength_columnsHavePercents$$1$$ = $childData$$.length;
  for($i$$376$$ = 0;$i$$376$$ < $childDataLength_columnsHavePercents$$1$$;$i$$376$$++) {
    data = $childData$$[$i$$376$$], "center" == data.halign && (data.sw = data.wrapper.scrollWidth), "middle" == data.valign && (data.sh = data.wrapper.scrollHeight)
  }
  for($i$$376$$ = 0;$i$$376$$ < $childDataLength_columnsHavePercents$$1$$;$i$$376$$++) {
    data = $childData$$[$i$$376$$], $wrapper$$18$$ = data.wrapper, $col$$13_columnResult_forcedDimensionStyles$$ = data.col, $cspan_permanentWidth$$ = data.cspan, $permanentHeight_row$$49$$ = data.row, $rowResult_rspan$$ = data.rspan, $halign$$9$$ = data.halign, $cellConstraints_valign$$9$$ = data.valign, $rowsHavePercents$$1_stylesToAssign$$1$$ = [], "center" == $halign$$9$$ ? ($caresAboutDescendantResizeNotifications$$1_wrappers$$ = $JSCompiler_alias_TRUE$$, $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = 
    $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$), $afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ = Math.max(0, $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$) - $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$), $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = 
    $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + Math.ceil($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ / 2 - data.sw / 2) + "px", $lastWrapperIndex_rtl$$8$$ ? $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) : $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$)) : 
    "stretch" == $halign$$9$$ ? ($agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$), $afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ = $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$), $lastWrapperIndex_rtl$$8$$ ? 
    $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + "px") : $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + "px"), $rowsHavePercents$$1_stylesToAssign$$1$$.push("width:" + ($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ - $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) + 
    "px")) : $lastWrapperIndex_rtl$$8$$ ? ("end" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$) + "px"), "start" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + $JSCompiler_StaticMethods__getLastEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$ - 1) + "px")) : 
    ("end" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$) + "px"), "start" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $JSCompiler_StaticMethods__getLastEdge$$($columns$$17_logger$$inline_3044$$, $col$$13_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$ - 1) + "px")), "middle" == $cellConstraints_valign$$9$$ ? 
    ($caresAboutDescendantResizeNotifications$$1_wrappers$$ = $JSCompiler_alias_TRUE$$, $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $JSCompiler_StaticMethods__getFirstEdge$$($rows$$18$$, $permanentHeight_row$$49$$), $afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ = Math.max(0, $JSCompiler_StaticMethods__getFirstEdge$$($rows$$18$$, $permanentHeight_row$$49$$ + $rowResult_rspan$$) - $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$), 
    $rowsHavePercents$$1_stylesToAssign$$1$$.push("top:" + ($agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + Math.ceil($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ / 2 - data.sh / 2)) + "px")) : "stretch" == $cellConstraints_valign$$9$$ ? ($agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $JSCompiler_StaticMethods__getFirstEdge$$($rows$$18$$, $permanentHeight_row$$49$$), $afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ = 
    $JSCompiler_StaticMethods__getFirstEdge$$($rows$$18$$, $permanentHeight_row$$49$$ + $rowResult_rspan$$), $rowsHavePercents$$1_stylesToAssign$$1$$.push("top:" + $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + "px"), $rowsHavePercents$$1_stylesToAssign$$1$$.push("height:" + ($afterLastStartEdge_afterLastTopEdge_cellAvailableHeight_cellAvailableWidth_rigidDiv$$ - $agent$$430_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) + "px")) : ("bottom" != 
    $cellConstraints_valign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("top:" + $JSCompiler_StaticMethods__getFirstEdge$$($rows$$18$$, $permanentHeight_row$$49$$) + "px"), "top" != $cellConstraints_valign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("bottom:" + $JSCompiler_StaticMethods__getLastEdge$$($rows$$18$$, $permanentHeight_row$$49$$ + $rowResult_rspan$$ - 1) + "px")), 0 < $rowsHavePercents$$1_stylesToAssign$$1$$.length && $AdfDomUtils$$.$addInlineStyle$($wrapper$$18$$, 
    $rowsHavePercents$$1_stylesToAssign$$1$$.join(";"), $JSCompiler_alias_TRUE$$), $logger$$22$$.$isLoggable$($AdfLogger$$.FINE) && $logger$$22$$.fine("child " + $i$$376$$ + ": c\x3d" + $col$$13_columnResult_forcedDimensionStyles$$ + " (span\x3d" + $cspan_permanentWidth$$ + ") halign\x3d" + $halign$$9$$ + " -- r\x3d" + $permanentHeight_row$$49$$ + " (span\x3d" + $rowResult_rspan$$ + ") valign\x3d" + $cellConstraints_valign$$9$$)
  }
  if($givenWidth$$ != $rootElement$$108$$.clientWidth || $givenHeight$$ != $rootElement$$108$$.clientHeight) {
    a: {
      $columns$$17_logger$$inline_3044$$ = $AdfLogger$$.$LOGGER$;
      if(this.$_repositionCount$ == $JSCompiler_alias_NULL$$) {
        this.$_repositionCount$ = 1, this.$_repositionTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_stopRepositionCallback$, {}, 1E3)
      }else {
        if(10 < ++this.$_repositionCount$ && ($givenWidth$$ == $JSCompiler_alias_NULL$$ || $givenWidth$$ > $rootElement$$108$$.clientWidth || $givenHeight$$ == $JSCompiler_alias_NULL$$ || $givenHeight$$ > $rootElement$$108$$.clientHeight)) {
          $columns$$17_logger$$inline_3044$$.$isLoggable$($AdfLogger$$.FINE) && $columns$$17_logger$$inline_3044$$.fine("Unsable structure encountered, stopping repositioning attempts (case a).");
          $JSCompiler_StaticMethods__cancelRepositionCallback$$(this);
          break a
        }
        if(15 < ++this.$_repositionCount$) {
          $columns$$17_logger$$inline_3044$$.$isLoggable$($AdfLogger$$.FINE) && $columns$$17_logger$$inline_3044$$.fine("Unsable structure encountered, stopping repositioning attempts (case b).");
          $JSCompiler_StaticMethods__cancelRepositionCallback$$(this);
          break a
        }
      }
      $columns$$17_logger$$inline_3044$$.$isLoggable$($AdfLogger$$.FINE) && $columns$$17_logger$$inline_3044$$.fine("Grid layout size change, notifying ancestors: panelGridLayout\x3d" + $rootElement$$108$$.id + " oldW\x3d" + $givenWidth$$ + ", newW\x3d" + $rootElement$$108$$.clientWidth + ", oldH\x3d" + $givenHeight$$ + ", newH\x3d" + $rootElement$$108$$.clientHeight);
      $AdfPage$$.$PAGE$.$__queueDescendantResizeNotifySource$($component$$1276$$);
      $AdfPage$$.$PAGE$.$__doDescendantResizeNotify$()
    }
  }else {
    $JSCompiler_StaticMethods__cancelRepositionCallback$$(this)
  }
  return $caresAboutDescendantResizeNotifications$$1_wrappers$$
};
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_stopRepositionCallback$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_stopRepositionCallback$$() {
  this.$_repositionTimer$ = this.$_repositionCount$ = $JSCompiler_alias_NULL$$
};
function $JSCompiler_StaticMethods__cancelRepositionCallback$$($JSCompiler_StaticMethods__cancelRepositionCallback$self$$) {
  $JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionTimer$ != $JSCompiler_alias_NULL$$ && $AdfPage$$.$PAGE$.$cancelTimer$($JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionTimer$);
  $JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionCount$ = $JSCompiler_alias_NULL$$;
  $JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionTimer$ = $JSCompiler_alias_NULL$$
}
function $JSCompiler_StaticMethods__getFirstEdge$$($lineSizes$$, $lineNumber$$2$$) {
  for(var $edge$$ = 0, $i$$377$$ = 0;$i$$377$$ < $lineNumber$$2$$ - 1;$i$$377$$++) {
    $edge$$ += $lineSizes$$[$i$$377$$]
  }
  return $edge$$
}
function $JSCompiler_StaticMethods__getLastEdge$$($lineSizes$$1$$, $lineNumber$$3$$) {
  for(var $edge$$1$$ = 0, $i$$378$$ = $lineSizes$$1$$.length - 1;$i$$378$$ >= $lineNumber$$3$$;$i$$378$$--) {
    $edge$$1$$ += $lineSizes$$1$$[$i$$378$$]
  }
  return $edge$$1$$
}
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_getAttribute$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_getAttribute$$($agent$$431_value$$159$$, $element$$252$$, $name$$91$$, $defaultValue$$10$$) {
  $agent$$431_value$$159$$ = $agent$$431_value$$159$$.getAttribute($element$$252$$, $name$$91$$);
  return $agent$$431_value$$159$$ == $JSCompiler_alias_NULL$$ ? $defaultValue$$10$$ : $agent$$431_value$$159$$
};
function $JSCompiler_StaticMethods__resolveSizes$$($lineSizes$$2$$, $lastLineNumber_resolveAutoSizes$$, $rootElement$$110$$, $autoSizesToResolveLength_childData$$1$$, $lineKey_remainingSize$$, $lineSpanKey$$, $clientSizeKey$$, $clientSize$$) {
  var $nonPercentTotal$$ = 0, $availableSize_i$$379$$, $agent$$432_lineAutoArray_size$$38$$, $data$$46$$, $lineIndex_wrapper$$19$$, $lineSizesLength$$1$$ = $lineSizes$$2$$.length;
  for($availableSize_i$$379$$ = $lastLineNumber_resolveAutoSizes$$ - $lineSizesLength$$1$$;0 < $availableSize_i$$379$$;$availableSize_i$$379$$--) {
    $lineSizes$$2$$.push("auto")
  }
  $lastLineNumber_resolveAutoSizes$$ = $JSCompiler_alias_FALSE$$;
  var $linePercentTotal$$ = 0, $lineSizesLength$$1$$ = $lineSizes$$2$$.length;
  for($availableSize_i$$379$$ = 0;$availableSize_i$$379$$ < $lineSizesLength$$1$$;$availableSize_i$$379$$++) {
    $agent$$432_lineAutoArray_size$$38$$ = $lineSizes$$2$$[$availableSize_i$$379$$], "auto" == $agent$$432_lineAutoArray_size$$38$$ ? ($lastLineNumber_resolveAutoSizes$$ = $JSCompiler_alias_TRUE$$, $agent$$432_lineAutoArray_size$$38$$ = ["auto"]) : -1 != $agent$$432_lineAutoArray_size$$38$$.indexOf("%") ? $linePercentTotal$$ += parseFloat($agent$$432_lineAutoArray_size$$38$$) : ($agent$$432_lineAutoArray_size$$38$$ = $AdfDomUtils$$.$getOffsetSizeFromCssLength$($rootElement$$110$$, $agent$$432_lineAutoArray_size$$38$$), 
    $nonPercentTotal$$ += $agent$$432_lineAutoArray_size$$38$$), $lineSizes$$2$$[$availableSize_i$$379$$] = $agent$$432_lineAutoArray_size$$38$$
  }
  if($lastLineNumber_resolveAutoSizes$$) {
    $agent$$432_lineAutoArray_size$$38$$ = $AdfAgent$$.$AGENT$;
    var $autoSize_autoSizesToResolve$$ = [], $firstLineIndex_lineSize$$, $lastLineIndex_lineAutoArrayLength$$, $autoSizeToResolve_lineAutoIndex$$, $childDataLength$$1$$ = $autoSizesToResolveLength_childData$$1$$.length;
    for($availableSize_i$$379$$ = 0;$availableSize_i$$379$$ < $childDataLength$$1$$;$availableSize_i$$379$$++) {
      if($data$$46$$ = $autoSizesToResolveLength_childData$$1$$[$availableSize_i$$379$$], $firstLineIndex_lineSize$$ = $data$$46$$[$lineKey_remainingSize$$] - 1, $lastLineIndex_lineAutoArrayLength$$ = $firstLineIndex_lineSize$$ + $data$$46$$[$lineSpanKey$$] - 1, $firstLineIndex_lineSize$$ != $lastLineIndex_lineAutoArrayLength$$) {
        $AdfLogger$$.$LOGGER$.$isLoggable$($AdfLogger$$.FINE) && $AdfLogger$$.$LOGGER$.fine("Skipped auto resolution for a multi-span child because firstLineIndex \x3d " + $firstLineIndex_lineSize$$ + " and lastLineIndex \x3d " + $lastLineIndex_lineAutoArrayLength$$)
      }else {
        $autoSizeToResolve_lineAutoIndex$$ = -1;
        for($lineIndex_wrapper$$19$$ = $firstLineIndex_lineSize$$;$lineIndex_wrapper$$19$$ <= $lastLineIndex_lineAutoArrayLength$$;$lineIndex_wrapper$$19$$++) {
          if("object" == typeof $lineSizes$$2$$[$lineIndex_wrapper$$19$$]) {
            $autoSizeToResolve_lineAutoIndex$$ = $lineIndex_wrapper$$19$$;
            break
          }
        }
        -1 != $autoSizeToResolve_lineAutoIndex$$ && ($lineIndex_wrapper$$19$$ = $data$$46$$.wrapper, $AdfDomUtils$$.$addInlineStyle$($lineIndex_wrapper$$19$$, "top:auto;top:auto;bottom:auto;left:auto;right:auto;width:auto;height:auto;max-width:none;max-height:none", $JSCompiler_alias_TRUE$$), $autoSize_autoSizesToResolve$$.push([$lineIndex_wrapper$$19$$, $firstLineIndex_lineSize$$, $lastLineIndex_lineAutoArrayLength$$, $autoSizeToResolve_lineAutoIndex$$]))
      }
    }
    $autoSizesToResolveLength_childData$$1$$ = $autoSize_autoSizesToResolve$$.length;
    for($availableSize_i$$379$$ = 0;$availableSize_i$$379$$ < $autoSizesToResolveLength_childData$$1$$;$availableSize_i$$379$$++) {
      $autoSizeToResolve_lineAutoIndex$$ = $autoSize_autoSizesToResolve$$[$availableSize_i$$379$$];
      $lineIndex_wrapper$$19$$ = $autoSizeToResolve_lineAutoIndex$$[0];
      $firstLineIndex_lineSize$$ = $autoSizeToResolve_lineAutoIndex$$[1];
      $lastLineIndex_lineAutoArrayLength$$ = $autoSizeToResolve_lineAutoIndex$$[2];
      $autoSizeToResolve_lineAutoIndex$$ = $autoSizeToResolve_lineAutoIndex$$[3];
      $lineKey_remainingSize$$ = 0;
      "clientWidth" == $clientSizeKey$$ ? ($lineKey_remainingSize$$ = $lineIndex_wrapper$$19$$.scrollWidth, $agent$$432_lineAutoArray_size$$38$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$ && 1.8 < $agent$$432_lineAutoArray_size$$38$$.$getVersion$() && ++$lineKey_remainingSize$$) : $lineKey_remainingSize$$ = $lineIndex_wrapper$$19$$.scrollHeight;
      for($lineIndex_wrapper$$19$$ = $firstLineIndex_lineSize$$;$lineIndex_wrapper$$19$$ <= $lastLineIndex_lineAutoArrayLength$$;$lineIndex_wrapper$$19$$++) {
        if($autoSizeToResolve_lineAutoIndex$$ == $lineIndex_wrapper$$19$$) {
          $lineSizes$$2$$[$lineIndex_wrapper$$19$$].push($lineKey_remainingSize$$);
          break
        }
        $firstLineIndex_lineSize$$ = $lineSizes$$2$$[$lineIndex_wrapper$$19$$];
        if("number" == typeof $firstLineIndex_lineSize$$ && ($lineKey_remainingSize$$ = Math.max(0, $lineKey_remainingSize$$ - $firstLineIndex_lineSize$$), 0 == $lineKey_remainingSize$$)) {
          break
        }
      }
    }
    for($lineIndex_wrapper$$19$$ = 0;$lineIndex_wrapper$$19$$ < $lineSizesLength$$1$$;$lineIndex_wrapper$$19$$++) {
      if($agent$$432_lineAutoArray_size$$38$$ = $lineSizes$$2$$[$lineIndex_wrapper$$19$$], $autoSize_autoSizesToResolve$$ = 0, "object" == typeof $agent$$432_lineAutoArray_size$$38$$) {
        $lastLineIndex_lineAutoArrayLength$$ = $agent$$432_lineAutoArray_size$$38$$.length;
        for($availableSize_i$$379$$ = 1;$availableSize_i$$379$$ < $lastLineIndex_lineAutoArrayLength$$;$availableSize_i$$379$$++) {
          $autoSize_autoSizesToResolve$$ = Math.max($autoSize_autoSizesToResolve$$, $agent$$432_lineAutoArray_size$$38$$[$availableSize_i$$379$$])
        }
        $lineSizes$$2$$[$lineIndex_wrapper$$19$$] = $autoSize_autoSizesToResolve$$;
        $nonPercentTotal$$ += $autoSize_autoSizesToResolve$$
      }
    }
  }
  $availableSize_i$$379$$ = 0;
  if(0 < $linePercentTotal$$) {
    $availableSize_i$$379$$ = Math.max(0, $clientSize$$ == $JSCompiler_alias_NULL$$ ? $rootElement$$110$$[$clientSizeKey$$] : $clientSize$$);
    $lineSizesLength$$1$$ = $lineSizes$$2$$.length;
    for($lineIndex_wrapper$$19$$ = 0;$lineIndex_wrapper$$19$$ < $lineSizesLength$$1$$ && 0 < $availableSize_i$$379$$;$lineIndex_wrapper$$19$$++) {
      $agent$$432_lineAutoArray_size$$38$$ = $lineSizes$$2$$[$lineIndex_wrapper$$19$$], "number" == typeof $agent$$432_lineAutoArray_size$$38$$ && ($availableSize_i$$379$$ = Math.max(0, $availableSize_i$$379$$ - $agent$$432_lineAutoArray_size$$38$$))
    }
    for($lineIndex_wrapper$$19$$ = 0;$lineIndex_wrapper$$19$$ < $lineSizesLength$$1$$;$lineIndex_wrapper$$19$$++) {
      $agent$$432_lineAutoArray_size$$38$$ = $lineSizes$$2$$[$lineIndex_wrapper$$19$$], "string" == typeof $agent$$432_lineAutoArray_size$$38$$ && ($lineSizes$$2$$[$lineIndex_wrapper$$19$$] = Math.floor($availableSize_i$$379$$ * parseFloat($agent$$432_lineAutoArray_size$$38$$) / $linePercentTotal$$))
    }
  }
  return[$nonPercentTotal$$, $lastLineNumber_resolveAutoSizes$$]
}
;