Fixed an issue in E5SslInfoWidget causing it to be displayed incomplete or off-screen, if the browser is at the left side of the screen.

Mon, 20 May 2013 12:41:16 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 20 May 2013 12:41:16 +0200
changeset 2666
a9d0feafa87b
parent 2665
edc098381123
child 2671
f67fd7a2fee5

Fixed an issue in E5SslInfoWidget causing it to be displayed incomplete or off-screen, if the browser is at the left side of the screen.

E5Network/E5SslInfoWidget.py file | annotate | diff | comparison | revisions
--- a/E5Network/E5SslInfoWidget.py	Mon May 20 11:43:59 2013 +0200
+++ b/E5Network/E5SslInfoWidget.py	Mon May 20 12:41:16 2013 +0200
@@ -168,7 +168,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