Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
a69908b7f0
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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: