Program: 143773
Project: 143773
Buggy source:
public void showPopupDiv(MainPage dialogContainer,String titleString,Rectangle r2,boolean resizeable,boolean closeAll,boolean modal,boolean firstShow){
  if (isShowingInDialog() && callingContainer != null)   callingContainer.showPopupDiv(dialogContainer,titleString,r2,resizeable,closeAll,modal,firstShow);
 else {
    if (useAJAX) {
      String windowName=dialogContainer.getPageMap().getName();
      ServoyDivDialog divDialog=divDialogs.get(windowName);
      if (divDialog == null) {
        divDialog=createDivDialog(windowName);
      }
      divDialog.setPageMapName(windowName);
      divDialog.setResizable(resizeable);
      divDialog.setUseInitialHeight(true);
      divDialog.setModal(modal);
      Rectangle bounds;
      if (FormManager.FULL_SCREEN.equals(r2)) {
        firstShow=true;
        Rectangle windowBounds=((WebClient)getController().getApplication()).getWindowBounds(this.getContainerName());
        bounds=new Rectangle(windowBounds.x,windowBounds.y,windowBounds.width,windowBounds.height - 45);
      }
 else {
        bounds=r2;
      }
      if (firstShow) {
        divDialog.setCookieBoundsOnShow(bounds);
        divDialog.setInitialHeight(bounds.height);
        divDialog.setInitialWidth(bounds.width);
      }
      divDialog.setCloseAll(closeAll);
      FormController fp=dialogContainer.getController();
      String titleStr=titleString;
      if (titleStr == null)       titleStr=fp.getForm().getTitleText();
      if (titleStr == null)       titleStr=fp.getName();
      titleStr=client.getI18NMessageIfPrefixed(titleStr);
      if (titleStr != null) {
        String name2=Text.processTags(titleStr,fp.getTagResolver());
        if (name2 != null)         titleStr=name2;
      }
      divDialog.setTitle(titleStr);
      divDialogActionBuffer.show(divDialog,windowName);
      triggerBrowserRequestIfNeeded();
    }
    dialogContainer.callingContainer=this;
  }
}

Fixed version (ground truth):
public void showPopupDiv(MainPage dialogContainer,String titleString,Rectangle r2,boolean resizeable,boolean closeAll,boolean modal,boolean firstShow){
  if (isShowingInDialog() && callingContainer != null)   callingContainer.showPopupDiv(dialogContainer,titleString,r2,resizeable,closeAll,modal,firstShow);
 else {
    if (useAJAX) {
      String windowName=dialogContainer.getPageMap().getName();
      ServoyDivDialog divDialog=divDialogs.get(windowName);
      if (divDialog == null) {
        divDialog=createDivDialog(windowName);
      }
      divDialog.setPageMapName(windowName);
      divDialog.setResizable(resizeable);
      divDialog.setUseInitialHeight(true);
      divDialog.setModal(modal);
      Rectangle bounds;
      if (FormManager.FULL_SCREEN.equals(r2)) {
        firstShow=true;
        bounds=new Rectangle(0,0,getWidth(),getHeight() - 45);
      }
 else {
        bounds=r2;
      }
      if (firstShow) {
        divDialog.setCookieBoundsOnShow(bounds);
        divDialog.setInitialHeight(bounds.height);
        divDialog.setInitialWidth(bounds.width);
      }
      divDialog.setCloseAll(closeAll);
      FormController fp=dialogContainer.getController();
      String titleStr=titleString;
      if (titleStr == null)       titleStr=fp.getForm().getTitleText();
      if (titleStr == null)       titleStr=fp.getName();
      titleStr=client.getI18NMessageIfPrefixed(titleStr);
      if (titleStr != null) {
        String name2=Text.processTags(titleStr,fp.getTagResolver());
        if (name2 != null)         titleStr=name2;
      }
      divDialog.setTitle(titleStr);
      divDialogActionBuffer.show(divDialog,windowName);
      triggerBrowserRequestIfNeeded();
    }
    dialogContainer.setWindowSize(null);
    dialogContainer.callingContainer=this;
  }
}