E5Network/E5SslInfoWidget.py

branch
Py2 comp.
changeset 2677
3d4277929fb3
parent 2538
b2642e7a4c18
parent 2666
a9d0feafa87b
child 3057
10516539f238
diff -r e60ea6cb8e11 -r 3d4277929fb3 E5Network/E5SslInfoWidget.py
--- a/E5Network/E5SslInfoWidget.py	Fri May 24 18:39:58 2013 +0200
+++ b/E5Network/E5SslInfoWidget.py	Tue May 28 20:52:12 2013 +0200
@@ -170,7 +170,10 @@
         @param pos position to show at (QPoint)
         """
         self.adjustSize()
-        p = QPoint(pos.x() - self.width(), pos.y() + 10)
+        xpos = pos.x() - self.width()
+        if xpos < 0:
+            xpos = 10
+        p = QPoint(xpos, pos.y() + 10)
         self.move(p)
         self.show()
     

eric ide

mercurial