Dropbutton items become truncated when it exceeds page height
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3571864. -->
Reported by: [jgjg](https://www.drupal.org/user/3584026)
Related to !782 !779 !754 !749
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>A dropbutton with enough height can get truncated by the bottom of the page. The page itself does not become scrollable to accommodate the dropbutton's height. Screenshot showing comparison with Seven theme:</p>
<p><img src="https://www.drupal.org/files/issues/2026-02-05/dropbutton.jpg" width="500" height="662" alt="Example screenshot"></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Use Gin 5.0.12 admin theme.</li>
<li>Access a dropbutton with many items. Example shown is configuration types from a config_update report.</li>
<li>If dropbutton height exceeds height of page, items become inaccessible.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ol>
<li>Update how dropbutton height is calculated</li>
<li>If it is going to go off the page, have it go upwards instead</li>
</ol>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Review</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>Dropbutton opening goes upwards if its going to be cut off the bottom of the page</p>
<h3 id="summary-api-changes">API changes</h3>
<p>N/A</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>N/A</p>
> Related issue: [Issue #3570850](https://www.drupal.org/node/3570850)
> Related issue: [Issue #3569691](https://www.drupal.org/node/3569691)
issue