[SCM] ktp-contact-applet packaging branch, master, updated. debian/15.12.1-1-966-gde83ac5
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:18:23 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=58e0f54
The following commit has been merged in the master branch:
commit 58e0f54ee721037e703617aa5989de8973451acb
Author: Aleix Pol <aleixpol at kde.org>
Date: Wed Mar 6 01:58:38 2013 +0100
Chat plasmoid: Improve placement of the dialog
Place the dialog by the plasmoid instead of 0,0 in case the button's
delegate hasn't been set up yet or there was a problem finding out the
position.
REVIEW: 109134
---
chat/org.kde.ktp-chat/contents/ui/ConversationDelegate.qml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/chat/org.kde.ktp-chat/contents/ui/ConversationDelegate.qml b/chat/org.kde.ktp-chat/contents/ui/ConversationDelegate.qml
index de44494..22d47dc 100644
--- a/chat/org.kde.ktp-chat/contents/ui/ConversationDelegate.qml
+++ b/chat/org.kde.ktp-chat/contents/ui/ConversationDelegate.qml
@@ -59,7 +59,12 @@ ConversationDelegateButton {
onVisibleChanged: {
if(visible) {
windowHide.hideWindowFromTaskbar(dialog.windowId)
- var point = dialog.popupPosition(convButton, convButton.popupBelow ? Qt.AlignBottom : Qt.AlignRight);
+ var pos = convButton.popupBelow ? Qt.AlignBottom : Qt.AlignRight;
+ //if we are opening the dialog right away (e.g. started chat from pinned)
+ //when we open the dialog by the button plasma will collapse because the
+ //item is not positioned yet. Use the plasmoid root instead, in those cases
+ var item = convButton.state==Component.Ready ? convButton : base;
+ var point = dialog.popupPosition(convButton, pos);
console.log("Showing dialog at (" + point.x + "," + point.y + ")");
dialog.x = point.x;
--
ktp-contact-applet packaging
More information about the pkg-kde-commits
mailing list