<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 - Calc: PageStyle: Fit print range to width/height is not expanding to the margins"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134882">134882</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Calc: PageStyle: Fit print range to width/height is not expanding to the margins
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>buzea.bogdan@libreoffice.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
1. Open the file exemple-file.ods I provided.
2. Press Shift+Ctrl+O and go to Format Page
3. From the Sheet tab choose "Fit print range to width/height"
4. What I expect: even if the table doesnt fit in one page, because it is to
big, if the height is to big and I set to be one page, everything should be
forced to be in one page by height, so from up to down everything match. And
also if the width is much larger, everything should fit. And here everything
works as expacted. But if the text is smaller than the width or smaller than
the heigt of the page it is not forced to FIT to it's width/height. 

So I ended having a table in a corner of a page. If the option is FIT, this is
what it should do, even if the text is smaller than the page... Should fit by
height or witdh, depending which one is first to reach margins...

See the video. It's much easier to understand.




Steps to Reproduce:
1. See description

Actual Results:
Everything fit only when width or height is bigger than one page...

Expected Results:
Everything fit even when width and height are smaler than margins of the
page...


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.4.5.2
Build ID: a726b36747cf2001e06b58ad5db1aa3a9a1872d6
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US
Calc: threaded</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>