<table><tr><td style="">mart created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</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/D5235" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>plasmawindowed didn't set any minimum size to its window,<br />
so it could be resized unusably small.<br />
it tried to find its attached Layout, but the attached property<br />
object wasn't created.<br />
now set the minimum size by the following heiristics:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">if there is a switchsize, set it to switch to full representation</li>
<li class="remarkup-list-item">then take the full representation minimum size if available and bigger then switch size</li>
<li class="remarkup-list-item">otherwise, set it as SizeEnormous icon size</li>
<li class="remarkup-list-item">in any case, don't let the window be less than that</li>
</ul>
<p>BUG:376277</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>tried both an applet that exports a layout and ful lrepresentation (kickoff)<br />
and an applet that wants to stay collapsed (analog clock) kickoff<br />
stays expanded at a reasonable minimum size, the clock can be scaled down<br />
to 128x128</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>phab/plasmawindowed</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5235" rel="noreferrer">https://phabricator.kde.org/D5235</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plasma-windowed/CMakeLists.txt<br />
plasma-windowed/plasmawindowedview.cpp<br />
plasma-windowed/plasmawindowedview.h</div></div></div><br /><div><strong>To: </strong>mart, Plasma<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>