<table><tr><td style="">sharvey added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12252">View Revision</a></tr></table><br /><div><div><p>The calculation is aiming for a minimum width of 1200px, which seems to be the minimum size needed to display both sidebars. Since the original calculation uses <tt style="background: #ebebeb; font-size: 13px;">physicalDotsPerInch</tt>, I'm only able to use my own laptop as a test subject. It's a 15" 1920x1080 screen. Checking <tt style="background: #ebebeb; font-size: 13px;">physicalDotsPerInch</tt> gives me a value of ~1.47. That's how I derived the value of 815 to multiply by. The <tt style="background: #ebebeb; font-size: 13px;">qBound</tt> function should keep the size to something reasonable, regardless of the screen size.</p>

<p>I don't have another machine to test on (particularly not a HiDPI screen), so this is going to need a test or two. It's possible that <tt style="background: #ebebeb; font-size: 13px;">physicalDotsPerInch</tt> may not be the ideal base for the calculation, in which case some more advanced algebra may be required.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R124 System Settings</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12252">https://phabricator.kde.org/D12252</a></div></div><br /><div><strong>To: </strong>sharvey, ngraham, mart<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>