diff -r cbe676f46e4e -r 6359e8b55505 eric6/Preferences/ConfigurationPages/NotificationsPage.py --- a/eric6/Preferences/ConfigurationPages/NotificationsPage.py Sun Jan 03 15:31:01 2021 +0100 +++ b/eric6/Preferences/ConfigurationPages/NotificationsPage.py Sun Jan 03 15:31:46 2021 +0100 @@ -54,6 +54,7 @@ self.ySpinBox.setMaximum(maxY) self.__notification = None + self.__firstTime = True # set initial values self.enableCheckBox.setChecked( @@ -93,6 +94,13 @@ self.__notification.move( QPoint(self.xSpinBox.value(), self.ySpinBox.value())) self.__notification.show() + if self.__firstTime: + # adjust the maximum values to the width of the notification + self.xSpinBox.setMaximum( + self.xSpinBox.maximum() - self.__notification.width()) + self.ySpinBox.setMaximum( + self.ySpinBox.maximum() - self.__notification.height()) + self.__firstTime = False else: # retrieve the position point = self.__notification.frameGeometry().topLeft()