diff --git a/YACReader/notifications_label_widget.cpp b/YACReader/notifications_label_widget.cpp index f40debda..70eded09 100644 --- a/YACReader/notifications_label_widget.cpp +++ b/YACReader/notifications_label_widget.cpp @@ -43,7 +43,7 @@ NotificationsLabelWidget::NotificationsLabelWidget(QWidget * parent) imgLabel->setGraphicsEffect(effect); textLabel->setGraphicsEffect(effect2); - resize(203,120); + resize(p.size()); updatePosition(); } diff --git a/YACReader/page_label_widget.cpp b/YACReader/page_label_widget.cpp index eaa70c7b..63385bd6 100644 --- a/YACReader/page_label_widget.cpp +++ b/YACReader/page_label_widget.cpp @@ -38,8 +38,8 @@ PageLabelWidget::PageLabelWidget(QWidget * parent) //textLabel->setFont(QFont("courier new bold", 12)); //textLabel->resize(100,25); - textLabel->setGeometry(imgLabel->geometry()); - + resize(p.size()); + updatePosition(); /*QSize size = textLabel->sizeHint(); int w = width(); // returns screen width