[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Review Request: Fix notification adjustPosition on resizeEven
From: "Alex Fiestas" <alex () eyeos ! org>
Date: 2011-07-17 18:49:17
Message-ID: 20110717184917.31771.57915 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101981/
-----------------------------------------------------------
(Updated July 17, 2011, 6:49 p.m.)
Review request for Plasma.
Changes
-------
With the patch, that won't happen
Summary
-------
On resizeEvent adjustPosition will be called so the widget can update the p=
osition in relation with the new size. The problem before this patch is tha=
t the code is not taking into account the position of the notification, whe=
ther it is closer to the top or to the bottom.
The current behavior is correct if the notification is closer to the top bu=
t 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 bigge=
r than the current size.
I can't find better words to describe the problem, so I will attach a scree=
nshot.
Diffs
-----
plasma/generic/applets/notifications/ui/stackdialog.h 89c36a9 =
plasma/generic/applets/notifications/ui/stackdialog.cpp 0d3f6a0 =
Diff: http://git.reviewboard.kde.org/r/101981/diff
Testing
-------
Everything I could think of:
1-Notifications in each corner of the screen
2-Notifications "gap" into a side.
3-Notifications at the middle
So far, so good!
Screenshots
-----------
Notification Wrong pos
http://git.reviewboard.kde.org/r/101981/s/204/
Thanks,
Alex
[Attachment #5 (text/html)]
<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 />
<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;">Changes</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;">With the patch, that won't happen</pre> </td>
</tr>
</table>
<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'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 "gap" 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>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic