Mon, 20 May 2013 12:41:16 +0200
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()