title: popup disappear for few seconds in android chrome browser when scrolling
body: <p>I have a dialog box, it is made as a popup, but whenever I scroll on an android device with a chrome browser, it disappers for a few seconds only to reappear.</p>
  
  <p>The dialog box contains a HTML form that the user needs to fill out, the data does however stay in the form.</p>
  
  <p>I have looked all over JqueryMobiles forum and they say it's because of a resize event, but i can't find a workaround for it.</p>
  
  <p>can anyone help?</p>
  
  <p>CSS code:</p>
  
  <pre><code>div.standarddialog {
  max-width:400px;
  position:relative !important;
  }
  </code></pre>
  
  <p>HTML code:</p>
  
  <pre><code>div data-role="popup" id="receiptUploadFileDialog" data-overlay-theme="b"
   data-theme="a" class="standarddialog" data-history="false"&gt;
  &lt;div data-role="header" class="ui-corner-top"&gt;
      &lt;h1&gt;Import&lt;/h1&gt;
  &lt;/div&gt;
  @* The main part of the dialog box *@
  &lt;div data-role="content" class="ui-corner-bottom ui-content"&gt;
      &lt;p&gt;Import file&lt;/p&gt;
      @* The form where the user can define the variables *@
      &lt;form method="post" enctype="multipart/form-data"
            data-ajax="false" target="receiptTargetUploadFile" id="receiptUploadFileForm" data-bind="attr: { action: model.uploadUrl }"&gt;      
          &lt;input type="file" name="imgFile" accept="image/*" id="receiptUploadFileInput"&gt;   @* The image file input *@   
          Description &lt;input type="text" name ="Description" id="desc"/&gt;                  @* Description input *@   
          Exspense type: &lt;select name="expType" id="expType"&gt;                             @* Expense Type as a dropdown menu, values taken from T03 *@   
                  &lt;/select&gt;
          Total: &lt;input type="number" name="amount" id="amount" required&gt;&lt;br&gt;             @* The amount as input *@   
          Currency: &lt;select name="currency" id="currency"&gt;                                @* The currency of the amount as a dropdown menu, values taken from A13 *@    
                  &lt;/select&gt; 
          Private expenses: &lt;input type="checkbox" name="priExp" id="priExp"&gt;&lt;br&gt;         @* Private expense if the user paid with own money or company money *@   
          Comment: &lt;input type="text" name="comment" id="comment"&gt;&lt;br&gt;                    @* Comment the user can define *@   
      &lt;/form&gt;
      &lt;p data-bind="text: model.validationText" class="validationError"&gt;&lt;/p&gt;
  
      &lt;a href="#" data-icon="arrow-u" data-role="button" data-iconpos="right" data-bind="click: $root.receiptSubmitUploadFileForm.bind($root)"&gt;Upload&lt;/a&gt; @* Submit button when the user is done, filling in the inputs *@   
  &lt;/div&gt;
  
  &lt;iframe id="receiptTargetUploadFile" name="receiptTargetUploadFile" style="position:absolute; left:-999em; top:-999em;"&gt;&lt;/iframe&gt;
  &lt;a href="#receiptUploadFileDialog" data-position-to="window" data-transition="pop"
     id="receiptInvisibleFileDialogOpener" data-role="button" data-rel="popup" style="visibility: hidden"&gt;&lt;/a&gt;
  </code></pre>
  
  <p></p>
  
  <p>Javascript:</p>
  
  <pre><code> public receiptShowUploadFileForm(settings: FileUploadSettings): void {
      if (this.runSetup) {
          this.setupCurrency();
          this.setupExpType();
      }
      this.model.uploadUrl(settings.uploadUrl);
      this.model.validatePath = settings.validatePath;
      this.model.afterUpload = settings.afterUpload;
      this.model.validationText("");
      this.jqMap.btnInvisibleFileOpener.click();
  
      $("#receiptTargetUploadFile")[0].onload = () =&gt; {
          this.jqMap.fileImportDialog.popup().popup("close");
  
          if (this.model.afterUpload) {
              this.model.afterUpload();
          }
  
          $("#receiptTargetUploadFile").remove();
          $('&lt;iframe id="receiptTargetUploadFile" name="receiptTargetUploadFile" style="position:absolute; left: -999em; top: -999em;"&gt;&lt;/iframe&gt;').appendTo('body');
      };
          this.runSetup = false; 
  }
  </code></pre>