<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibreOffice window size is too small after resizing with clicking the "Restore Down" button"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=142649">142649</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LibreOffice window size is too small after resizing with clicking the "Restore Down" button
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.7.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>binli@gnome.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Click the "Restore Down" button, the window resize very very small.

Steps to Reproduce:
1. Launch any one of the LibreOffice group app, such as writer, then close it
directly.
2. Launch writer again. 
3. Click the "Restore Down" button of the app's menu tray bar

Actual Results:
The window size by default is not correct.

Expected Results:
Display normal after 'Restore down'


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Debugged more about it, found the initial position in
~/.config/libreoffice/4/user/registrymodifications.xcu which made it small. If
I removed the ooSetupFactoryWindowAttributes line, and restart the libreoffice,
it could drop-down into the middle of screen, it expects behavior. If I don't
'Restore down' at the first time and close it, this issue will be reproduced.

<prop oor:name="ooSetupFactoryWindowAttributes"
oor:op="fuse"><value>0,64,4,4;5;0,64,1712,899;</value></prop>

The value of that prop can be interpreted as follows:

x-pos,y-pos,width,height;window-state;maximized-x-pos,maximized-y-pos,maximized-width,maximized-height;</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>