<p>This is a followup to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="851956044" data-permission-text="Title is private" data-url="https://github.com/bisq-network/bisq/issues/5399" data-hovercard-type="pull_request" data-hovercard-url="/bisq-network/bisq/pull/5399/hovercard" href="https://github.com/bisq-network/bisq/pull/5399">#5399</a> which cleans up a minor display issue.</p>
<p>CashByMail terms are defined by the offer maker, some users have only 1 line of text, others have a lengthy contract.<br>
For the cases where only 1 line is shown, the large popup taking the whole screen looks a bit ridiculous, so here we vertically size the popup proportional to the number of lines in the message (with limits to not be < 20% or > 70% of allowable height).</p>
<hr>
<p>Here are some example screenshots comparing the results with lots of text, and just one line.</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/47253594/115471174-28e7a680-a1fd-11eb-9343-eb87742c8a03.png"><img src="https://user-images.githubusercontent.com/47253594/115471174-28e7a680-a1fd-11eb-9343-eb87742c8a03.png" alt="image" style="max-width:100%;"></a></p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/47253594/115471133-1b322100-a1fd-11eb-94cf-5645553b3ed8.png"><img src="https://user-images.githubusercontent.com/47253594/115471133-1b322100-a1fd-11eb-94cf-5645553b3ed8.png" alt="image" style="max-width:100%;"></a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/5424'>https://github.com/bisq-network/bisq/pull/5424</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Size GenericMessageWindow proportional to amount of text shown</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/5424/files#diff-88bc997bd6c2881f1ab854b8eb34d432f1ad752bcf3d8f1c3b652d717035da56">desktop/src/main/java/bisq/desktop/main/overlays/windows/GenericMessageWindow.java</a>
    (12)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/5424.patch'>https://github.com/bisq-network/bisq/pull/5424.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/5424.diff'>https://github.com/bisq-network/bisq/pull/5424.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/5424">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNVKQDRWJWD4FYWEGB3TJX5ZBANCNFSM43JFEUUQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNRXDX6NOSWPBAWJZR3TJX5ZBA5CNFSM43JFEUU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4M3UY5DA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/5424",
"url": "https://github.com/bisq-network/bisq/pull/5424",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>