<p dir="auto">Leaflet may get confused if you use css <code class="notranslate">min-width</code> property on popup contents.</p>
<p dir="auto">Examples in Chromium where scrollbars always take width.</p>
<p dir="auto">Here I made the contents longer and limited the popup height while keeping css <code class="notranslate">min-width</code>:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/3aea1c01-fb3a-4124-b646-4ab580d27680">image.png (view on web)</a></p>
<p dir="auto">This is with <code class="notranslate">minWidth</code> <code class="notranslate">.bindPopup</code> option, no horizontal scrollbar appears:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/06872411-228b-418d-9414-c51cc61c0049">image.png (view on web)</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4722'>https://github.com/openstreetmap/openstreetmap-website/pull/4722</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4722/commits/671bb76f05c926d700520a73fd8598ce062385aa" class="commit-link">671bb76</a> Use bindPopup options to set min width of user popup</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4722/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4722/files#diff-6bf5e2b503c6238cb80234a21524267bec1b1a820855412a5795c6296f11cb89">app/assets/javascripts/user.js</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4722/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4722.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4722.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4722.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4722.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4722">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPEH7TJZHAMLOXNI4TY7BPEVAVCNFSM6AAAAABGX6VU5KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DENBYGI3TAMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIE6Y65COGNIEGUVDDY7BPEVA5CNFSM6AAAAABGX6VU5KWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHINWV7BU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4722</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4722",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4722",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>