--- a/src/eric7/PdfViewer/PdfPageSelector.py Fri Jan 13 18:20:54 2023 +0100 +++ b/src/eric7/PdfViewer/PdfPageSelector.py Sat Jan 14 18:25:26 2023 +0100 @@ -13,7 +13,7 @@ from PyQt6.QtGui import QIntValidator from PyQt6.QtPdf import QPdfDocument from PyQt6.QtWidgets import ( - QToolButton, QHBoxLayout, QWidget, QLabel, QLineEdit + QToolButton, QHBoxLayout, QWidget, QLabel, QLineEdit, QSizePolicy ) from eric7.EricGui import EricPixmapCache @@ -50,6 +50,9 @@ self.__pageEntry = QLineEdit() self.__pageEntry.setMaxLength(10) self.__pageEntry.setAlignment(Qt.AlignmentFlag.AlignCenter) + self.__pageEntry.setSizePolicy( + QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed + ) self.__pageLabel = QLabel() self.__layout = QHBoxLayout()