var $AdfDhtmlPanelStretchLayoutPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlPanelStretchLayoutPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlPanelStretchLayoutPeer", $AdfDhtmlPanelStretchLayoutPeer$$);
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$needsResizeNotify$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$needsChildVisibilityChanges$ = $JSCompiler_returnArg$$($JSCompiler_alias_TRUE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.needsChildVisibilityChanges", {$needsChildVisibilityChanges$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$needsChildVisibilityChanges$});
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$ComponentRemoved$$($component$$1331$$) {
  $AdfPage$$.$PAGE$.$__unregisterDescendantResizeNotifyComponent$($component$$1331$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$BindToComponent$$($component$$1332$$, $domElement$$357$$) {
  $AdfDhtmlPanelStretchLayoutPeer$$.$superclass$.$BindToComponent$.call(this, $component$$1332$$, $domElement$$357$$);
  var $clientId$$324_rightId$$ = $component$$1332$$.$getClientId$(), $centerId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$324_rightId$$, "c"), $middleWrapperId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$324_rightId$$, "m"), $topId$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$324_rightId$$, "t"), $bottomId$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$324_rightId$$, "b"), $leftId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$324_rightId$$, "l"), $clientId$$324_rightId$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$324_rightId$$, 
  "r"), $agent$$463$$ = $AdfAgent$$.$AGENT$;
  this.$_centerPaneElement$ = $agent$$463$$.getElementById($centerId$$1$$);
  this.$_middleWrapperElement$ = $agent$$463$$.getElementById($middleWrapperId$$);
  this.$_topPaneElement$ = $agent$$463$$.getElementById($topId$$2$$);
  this.$_bottomPaneElement$ = $agent$$463$$.getElementById($bottomId$$2$$);
  this.$_leftPaneElement$ = $agent$$463$$.getElementById($leftId$$);
  this.$_rightPaneElement$ = $agent$$463$$.getElementById($clientId$$324_rightId$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$BindToComponent$});
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$UnbindFromComponent$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$UnbindFromComponent$$() {
  $AdfDhtmlPanelStretchLayoutPeer$$.$superclass$.$UnbindFromComponent$.call(this);
  this.$_rightPaneElement$ = this.$_leftPaneElement$ = this.$_bottomPaneElement$ = this.$_topPaneElement$ = this.$_middleWrapperElement$ = this.$_centerPaneElement$ = $JSCompiler_alias_NULL$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.UnbindFromComponent", {$UnbindFromComponent$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$UnbindFromComponent$});
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$ResizeNotify$$($oldWidth$$26$$, $oldHeight$$25$$, $newWidth$$45$$, $newHeight$$34$$) {
  $oldWidth$$26$$ == $newWidth$$45$$ && $oldHeight$$25$$ == $newHeight$$34$$ && ($oldHeight$$25$$ = $oldWidth$$26$$ = $JSCompiler_alias_VOID$$);
  var $dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$ = this.$getDomElement$(), $dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$ = $AdfDomUtils$$.$getFirstChildElement$($dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$);
  if($dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$ != $JSCompiler_alias_NULL$$) {
    var $dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$ = this.$_isDimensionsFromParent$($dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$), $topPaneElement$$ = this.$_topPaneElement$, $leftPaneElement$$ = this.$_leftPaneElement$, $centerPaneElement$$ = this.$_centerPaneElement$, $rightPaneElement$$ = this.$_rightPaneElement$, $bottomPaneElement$$ = this.$_bottomPaneElement$, $innerHeight$$1_topHeight$$ = this.$_getSize$($topPaneElement$$, "height"), $innerWidth$$1_leftWidth$$ = 
    this.$_getSize$($leftPaneElement$$, "width"), $rightWidth$$ = this.$_getSize$($rightPaneElement$$, "width"), $bottomHeight$$ = this.$_getSize$($bottomPaneElement$$, "height"), $repositioningRequired$$ = $JSCompiler_alias_FALSE$$;
    $topPaneElement$$ && $AdfDomUtils$$.$isVisible$($topPaneElement$$) && !$innerHeight$$1_topHeight$$ && ($innerHeight$$1_topHeight$$ = $topPaneElement$$.offsetHeight, $repositioningRequired$$ = $JSCompiler_alias_TRUE$$);
    $leftPaneElement$$ && $AdfDomUtils$$.$isVisible$($leftPaneElement$$) && !$innerWidth$$1_leftWidth$$ && ($repositioningRequired$$ = $JSCompiler_alias_TRUE$$);
    $centerPaneElement$$ && $AdfDomUtils$$.$isVisible$($centerPaneElement$$) && !$dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$ && $JSCompiler_StaticMethods__isJsFlowLayout$$(this) && ($repositioningRequired$$ = $JSCompiler_alias_TRUE$$);
    $rightPaneElement$$ && $AdfDomUtils$$.$isVisible$($rightPaneElement$$) && !$rightWidth$$ && ($repositioningRequired$$ = $JSCompiler_alias_TRUE$$);
    $bottomPaneElement$$ && $AdfDomUtils$$.$isVisible$($bottomPaneElement$$) && !$bottomHeight$$ && ($bottomHeight$$ = $bottomPaneElement$$.offsetHeight, $repositioningRequired$$ = $JSCompiler_alias_TRUE$$);
    $repositioningRequired$$ && (this.$_repositionPanes$(), $AdfPage$$.$PAGE$.$__registerDescendantResizeNotifyComponent$(this.$getComponent$()));
    $innerWidth$$1_leftWidth$$ = this.$_getSize$($leftPaneElement$$, "width");
    $rightWidth$$ = this.$_getSize$($rightPaneElement$$, "width");
    $innerHeight$$1_topHeight$$ = $newHeight$$34$$ - ($innerHeight$$1_topHeight$$ + $bottomHeight$$);
    $innerWidth$$1_leftWidth$$ = $newWidth$$45$$ - ($innerWidth$$1_leftWidth$$ + $rightWidth$$);
    $newWidth$$45$$ != $oldWidth$$26$$ && ($JSCompiler_StaticMethods__stretchPane$$($topPaneElement$$, $newWidth$$45$$, $JSCompiler_alias_VOID$$), $JSCompiler_StaticMethods__stretchPane$$($bottomPaneElement$$, $newWidth$$45$$, $JSCompiler_alias_VOID$$));
    $dimensionsFromParent$$12_firstElement$$3_rootElement$$121$$ && ($newHeight$$34$$ != $oldHeight$$25$$ && ($JSCompiler_StaticMethods__stretchPane$$($leftPaneElement$$, $JSCompiler_alias_VOID$$, $innerHeight$$1_topHeight$$), $JSCompiler_StaticMethods__stretchPane$$($rightPaneElement$$, $JSCompiler_alias_VOID$$, $innerHeight$$1_topHeight$$)), $JSCompiler_StaticMethods__stretchPane$$($centerPaneElement$$, $innerWidth$$1_leftWidth$$, $innerHeight$$1_topHeight$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$DomReplaceNotify$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$DomReplaceNotify$$($domNode$$69$$) {
  if(this.$_isChild$($domNode$$69$$)) {
    var $needsResizeNotify$$2$$ = $JSCompiler_alias_FALSE$$, $parentPane$$ = $domNode$$69$$.parentNode, $canAbsolutePosition_parentVisible$$2$$ = $AdfDomUtils$$.$isVisible$($parentPane$$), $childVisible$$9_paneAutoSized$$ = $AdfDomUtils$$.$isVisible$($domNode$$69$$);
    $childVisible$$9_paneAutoSized$$ != $canAbsolutePosition_parentVisible$$2$$ && ($AdfDomUtils$$.setVisible($parentPane$$, $childVisible$$9_paneAutoSized$$), this.$_repositionPanes$(), $needsResizeNotify$$2$$ = $JSCompiler_alias_TRUE$$);
    var $canAbsolutePosition_parentVisible$$2$$ = $JSCompiler_alias_TRUE$$, $childVisible$$9_paneAutoSized$$ = $JSCompiler_alias_FALSE$$, $rootElement$$122$$ = this.$getDomElement$(), $dimensionsFromParent$$13_firstElement$$4$$ = $AdfDomUtils$$.$getFirstChildElement$($rootElement$$122$$);
    if($dimensionsFromParent$$13_firstElement$$4$$ == $JSCompiler_alias_NULL$$) {
      return $rootElement$$122$$
    }
    var $dimensionsFromParent$$13_firstElement$$4$$ = this.$_isDimensionsFromParent$($dimensionsFromParent$$13_firstElement$$4$$), $parentPaneId$$ = $parentPane$$.id;
    -1 != $parentPaneId$$.indexOf("::t") || -1 != $parentPaneId$$.indexOf("::b") ? this.$_getSize$($parentPane$$, "height") || ($needsResizeNotify$$2$$ = $childVisible$$9_paneAutoSized$$ = $JSCompiler_alias_TRUE$$) : -1 != $parentPaneId$$.indexOf("::r") || -1 != $parentPaneId$$.indexOf("::l") ? $dimensionsFromParent$$13_firstElement$$4$$ ? this.$_getSize$($parentPane$$, "width") || ($needsResizeNotify$$2$$ = $childVisible$$9_paneAutoSized$$ = $JSCompiler_alias_TRUE$$) : $canAbsolutePosition_parentVisible$$2$$ = 
    $JSCompiler_alias_FALSE$$ : -1 != $parentPaneId$$.indexOf("::c") && ($dimensionsFromParent$$13_firstElement$$4$$ || ($canAbsolutePosition_parentVisible$$2$$ = $JSCompiler_alias_FALSE$$));
    if($canAbsolutePosition_parentVisible$$2$$ && !$childVisible$$9_paneAutoSized$$) {
      var $panePadding$$3$$ = "0px", $agent$$464$$ = $AdfAgent$$.$AGENT$;
      $agent$$464$$.$prepareStretchedChild$($domNode$$69$$, $panePadding$$3$$)
    }
    return $canAbsolutePosition_parentVisible$$2$$ && !$needsResizeNotify$$2$$ ? ($agent$$464$$.$resizeStretchedChild$($domNode$$69$$, $panePadding$$3$$), $domNode$$69$$) : $rootElement$$122$$
  }
  return $domNode$$69$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.DomReplaceNotify", {$DomReplaceNotify$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$DomReplaceNotify$});
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$ChildVisibilityChanged$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$ChildVisibilityChanged$$($childComponent$$17$$, $childDomElement$$9$$, $childVisible$$10$$) {
  return this.$_isChild$($childDomElement$$9$$) ? ($AdfDomUtils$$.setVisible($childDomElement$$9$$.parentNode, $childVisible$$10$$), this.$_repositionPanes$(), $AdfDomUtils$$.setVisible($childDomElement$$9$$, $childVisible$$10$$), $AdfPage$$.$PAGE$.$doResizeNotify$(this.$getComponent$()), $JSCompiler_alias_TRUE$$) : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelStretchLayoutPeer.prototype.ChildVisibilityChanged", {$ChildVisibilityChanged$:$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$ChildVisibilityChanged$});
function $JSCompiler_StaticMethods__isJsFlowLayout$$($JSCompiler_StaticMethods__isJsFlowLayout$self_middleWrapperElement$$) {
  $JSCompiler_StaticMethods__isJsFlowLayout$self_middleWrapperElement$$ = $JSCompiler_StaticMethods__isJsFlowLayout$self_middleWrapperElement$$.$_middleWrapperElement$;
  return $JSCompiler_StaticMethods__isJsFlowLayout$self_middleWrapperElement$$ != $JSCompiler_alias_NULL$$ && "true" == $AdfAgent$$.$AGENT$.getAttribute($JSCompiler_StaticMethods__isJsFlowLayout$self_middleWrapperElement$$, "_afrFlowJs")
}
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$_getSize$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$_getSize$$($paneElement$$3$$, $propName$$28$$) {
  return $paneElement$$3$$ && $AdfDomUtils$$.$isVisible$($paneElement$$3$$) ? $AdfAgent$$.$getCSSLengthAsInt$($paneElement$$3$$.style[$propName$$28$$]) : 0
};
function $JSCompiler_StaticMethods__getSizeLength$$($paneElement$$4$$, $propName$$29$$) {
  if($paneElement$$4$$ && $AdfDomUtils$$.$isVisible$($paneElement$$4$$)) {
    var $styleLength$$ = $paneElement$$4$$.style[$propName$$29$$];
    return $styleLength$$ ? $styleLength$$ : $paneElement$$4$$["offset" + $propName$$29$$.charAt(0).toUpperCase() + $propName$$29$$.substring(1)] + "px"
  }
  return"0px"
}
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$_isChild$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$_isChild$$($domNode$$70$$) {
  return $domNode$$70$$.parentNode.parentNode == this.$getDomElement$()
};
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$_repositionPanes$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$_repositionPanes$$() {
  var $agent$$465_maxHeight$$4$$ = $AdfAgent$$.$AGENT$, $leftPaneElement$$1$$ = this.$_leftPaneElement$, $bottomPaneElement$$1_leftWidth$$1$$ = this.$_bottomPaneElement$, $rightPaneElement$$1$$ = this.$_rightPaneElement$, $centerPaneElement$$1$$ = this.$_centerPaneElement$, $topHeight$$1$$ = $JSCompiler_StaticMethods__getSizeLength$$(this.$_topPaneElement$, "height"), $bottomHeight$$1$$ = $JSCompiler_StaticMethods__getSizeLength$$($bottomPaneElement$$1_leftWidth$$1$$, "height"), $bottomPaneElement$$1_leftWidth$$1$$ = 
  $JSCompiler_StaticMethods__getSizeLength$$($leftPaneElement$$1$$, "width"), $rightWidth$$1$$ = $JSCompiler_StaticMethods__getSizeLength$$($rightPaneElement$$1$$, "width"), $firstElement$$5_rootElement$$123$$ = this.$getDomElement$(), $firstElement$$5_rootElement$$123$$ = $AdfDomUtils$$.$getFirstChildElement$($firstElement$$5_rootElement$$123$$);
  $firstElement$$5_rootElement$$123$$ != $JSCompiler_alias_NULL$$ && (this.$_isDimensionsFromParent$($firstElement$$5_rootElement$$123$$) ? ($agent$$465_maxHeight$$4$$.$repositionStretchedElement$($leftPaneElement$$1$$, $topHeight$$1$$, $bottomHeight$$1$$), $agent$$465_maxHeight$$4$$.$repositionStretchedElement$($rightPaneElement$$1$$, $topHeight$$1$$, $bottomHeight$$1$$), $agent$$465_maxHeight$$4$$.$repositionStretchedElement$($centerPaneElement$$1$$, $topHeight$$1$$, $bottomHeight$$1$$, $bottomPaneElement$$1_leftWidth$$1$$, 
  $rightWidth$$1$$)) : $JSCompiler_StaticMethods__isJsFlowLayout$$(this) && ($agent$$465_maxHeight$$4$$ = 0, $centerPaneElement$$1$$ != $JSCompiler_alias_NULL$$ && ($centerPaneElement$$1$$.style.left = $bottomPaneElement$$1_leftWidth$$1$$, $centerPaneElement$$1$$.style.right = $rightWidth$$1$$, $agent$$465_maxHeight$$4$$ = Math.max($agent$$465_maxHeight$$4$$, $centerPaneElement$$1$$.offsetHeight)), $leftPaneElement$$1$$ != $JSCompiler_alias_NULL$$ && ($agent$$465_maxHeight$$4$$ = Math.max($agent$$465_maxHeight$$4$$, 
  $leftPaneElement$$1$$.offsetHeight)), $rightPaneElement$$1$$ != $JSCompiler_alias_NULL$$ && ($agent$$465_maxHeight$$4$$ = Math.max($agent$$465_maxHeight$$4$$, $rightPaneElement$$1$$.offsetHeight)), this.$_middleWrapperElement$.style.height = $agent$$465_maxHeight$$4$$ + "px"))
};
$AdfDhtmlPanelStretchLayoutPeer$$.prototype.$_isDimensionsFromParent$ = function $$AdfDhtmlPanelStretchLayoutPeer$$$$$_isDimensionsFromParent$$($computedStyle$$17_nodeToTest$$) {
  this.$_dimensionsFromParent$ == $JSCompiler_alias_NULL$$ && ($computedStyle$$17_nodeToTest$$ = $computedStyle$$17_nodeToTest$$ = $AdfAgent$$.$AGENT$.getComputedStyle($computedStyle$$17_nodeToTest$$), this.$_dimensionsFromParent$ = "absolute" == $computedStyle$$17_nodeToTest$$.position);
  return this.$_dimensionsFromParent$
};
function $JSCompiler_StaticMethods__stretchPane$$($paneElement$$5$$, $width$$33$$, $height$$38$$) {
  if($paneElement$$5$$) {
    var $agent$$466$$ = $AdfAgent$$.$AGENT$;
    $agent$$466$$.$resizeStretchedElement$($paneElement$$5$$, $width$$33$$, $height$$38$$);
    $agent$$466$$.$resizeStretchedChild$($AdfDomUtils$$.$getFirstChildElement$($paneElement$$5$$), "0px")
  }
}
;