<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/101981/">http://git.reviewboard.kde.org/r/101981/</a>
     </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This review has been submitted with commit 848f7d43fd9a9b029d2ac2137b82d46221943324 by Alex Fiestas to branch master.</pre>
 <br />







<p>- Commit</p>


<br />
<p>On July 17th, 2011, 6:49 p.m., Alex Fiestas wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Plasma.</div>
<div>By Alex Fiestas.</div>


<p style="color: grey;"><i>Updated July 17, 2011, 6:49 p.m.</i></p>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">On resizeEvent adjustPosition will be called so the widget can update the position in relation with the new size. The problem before this patch is that the code is not taking into account the position of the notification, whether it is closer to the top or to the bottom.

The current behavior is correct if the notification is closer to the top but it is incorrect if the notification is closer to the bottom since in that case we want the notification to increment the Y if the old size was bigger than the current size.

I can&#39;t find better words to describe the problem, so I will attach a screenshot.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Everything I could think of:
1-Notifications in each corner of the screen
2-Notifications &quot;gap&quot; into a side.
3-Notifications at the middle

So far, so good!</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>plasma/generic/applets/notifications/ui/stackdialog.h <span style="color: grey">(89c36a9)</span></li>

 <li>plasma/generic/applets/notifications/ui/stackdialog.cpp <span style="color: grey">(0d3f6a0)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/101981/diff/" style="margin-left: 3em;">View Diff</a></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Screenshots </h1>

<div>

 <a href="http://git.reviewboard.kde.org/r/101981/s/204/"><img src="http://git.reviewboard.kde.org/media/uploaded/images/2011/07/17/notiWrong_400x100.png" style="border: 1px black solid;" alt="Notification Wrong pos" /></a>

</div>


  </td>
 </tr>
</table>








  </div>
 </body>
</html>