title: PysimpleGui window gets rescaled to smaller size when i recall the function in which pysimpleGUI is present
body: <p>I am creating an app in which i want display data in tabular format i created a GUI windows that displays the data properly but whenever i recall the same function or any other GUI function my GUI window Gets Resized/Rescaled to a smaller size</p>
  <pre><code>def tableGUIP(file):
      data = []
      header_list = []
      df = pd.read_csv(file, sep=',', engine='python', header=None)
      data = df.values.tolist()               # read everything else into a list of rows
      header_list = df.iloc[0].tolist()
      data = df[1:].values.tolist()
  
      layout = [
          [sg.Table(values=data,
                  headings=header_list,
                  display_row_numbers=False,
                  auto_size_columns=True,
                  row_height=20,
                  num_rows=min(20, len(data)))],
                  [sg.Text('Column', size =(15, 1))],
                  [sg.Button(&quot;Rank&quot;),sg.Button(&quot;Live&quot;),sg.Button(&quot;2020&quot;),sg.Button(&quot;Area&quot;),sg.Button(&quot;Density&quot;),sg.Button(&quot;Growth&quot;),sg.Button(&quot;World %&quot;),sg.Exit()]
                  
      ]
      window = sg.Window('Table', layout, grab_anywhere=False,use_default_focus=True,keep_on_top=True,finalize=True)
      event, values = window.read()
      while True:
          if event in (None, 'Exit'):
              sortcol('Exit')
              break   
          # in ('Rank','2022 (Live)', '2020 Population', 'Area', 'Density', 'Growth Rate', 'World %'):
          if event == &quot;Rank&quot;:
              sortcol('Rank')
              break
          elif event==&quot;Live&quot;:
              sortcol('2022 (Live)')
              break
          elif event==&quot;2020&quot;:
              sortcol('2020 Population')
              break
          elif event==&quot;Area&quot;:
              sortcol('Area')
              break
          elif event==&quot;Density&quot;:
              sortcol('Density')
              break
          elif event==&quot;Growth&quot;:
              sortcol('Growth Rate')
              break
          elif event==&quot;World %&quot;:
              sortcol('World %')
              break
      window.close()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/yFknp.png" rel="nofollow noreferrer">This is the GUI windows after the first occurrence occurs</a>
  <a href="https://i.stack.imgur.com/jEu1M.png" rel="nofollow noreferrer">This is the GUI windows When the first occurrence occurs</a></p>