Pārlūkot izejas kodu

Resize the popup widget on baseWidget show

If the size of baseWidget is changed while hidden, the size of the popup
widget is purposely not updated (for perf reasons ?).
We enforce the geometry is correctly before the popup gets shown.
Julien Finet 14 gadi atpakaļ
vecāks
revīzija
a69908b7f0
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      Libs/Widgets/ctkPopupWidget.cpp

+ 1 - 0
Libs/Widgets/ctkPopupWidget.cpp

@@ -904,6 +904,7 @@ bool ctkPopupWidget::eventFilter(QObject* obj, QEvent* event)
         {
 	      break;
 	      }
+	    this->setGeometry(d->desiredOpenGeometry());
 	    d->temporarilyHiddenOff();
 	    break;
 	  case QEvent::Resize: