Bug 341218 - Top and Bottom Margins in the Notification are not the same
Summary: Top and Bottom Margins in the Notification are not the same
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Martin Klapetek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-24 10:44 UTC by Vishesh Handa
Modified: 2014-12-02 11:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
An Image showing the margin problem (15.19 KB, image/jpeg)
2014-11-24 10:44 UTC, Vishesh Handa
Details
Patch that should fix this (936 bytes, patch)
2014-11-24 11:30 UTC, Kai Uwe Broulik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vishesh Handa 2014-11-24 10:44:26 UTC
Created attachment 89710 [details]
An Image showing the margin problem

The margins on the top and bottom should be the same.

$ notify-send --icon='nepomuk' 'The top and bottom margins in this notification are not the same'
Comment 1 Kai Uwe Broulik 2014-11-24 11:30:47 UTC
Created attachment 89711 [details]
Patch that should fix this

Can you test this patch? The margins are now added outside the Math.max (not having a body text is not a valid usecase imho but still shouldn't break then but the margins were not added to the minimum size which is the icon size)
Comment 2 Aleix Pol 2014-11-24 15:19:50 UTC
FWIW, the patch looks sane to me, maybe make it into a review request?
Comment 3 Kai Uwe Broulik 2014-11-25 11:03:49 UTC
Git commit 3f6e5bd7a8956f3a0d43cddea4a084d66d3e5479 by Kai Uwe Broulik.
Committed on 25/11/2014 at 11:03.
Pushed by broulik into branch 'master'.

Fix dialog minimum height (always add the margins afterwards)
REVIEW: 121228

M  +1    -1    applets/notifications/package/contents/ui/NotificationItem.qml

http://commits.kde.org/plasma-workspace/3f6e5bd7a8956f3a0d43cddea4a084d66d3e5479
Comment 4 Vishesh Handa 2014-11-25 12:18:29 UTC
Thanks. Much much better.

It's still off by quite a few pixels but that's probably the annoying icons which do not have consistent spacing.
Comment 5 Martin Klapetek 2014-12-02 11:54:16 UTC
Git commit 4c097829138ae5a8ccd78b1a10b11f35813a3efa by Martin Klapetek, on behalf of Kai Uwe Broulik.
Committed on 25/11/2014 at 11:03.
Pushed by mklapetek into branch 'Plasma/5.1'.

Fix dialog minimum height (always add the margins afterwards)
REVIEW: 121228

M  +1    -1    applets/notifications/package/contents/ui/NotificationItem.qml

http://commits.kde.org/plasma-workspace/4c097829138ae5a8ccd78b1a10b11f35813a3efa