Ver código fonte

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 13 anos atrás
pai
commit
a69908b7f0
1 arquivos alterados com 1 adições e 0 exclusões
  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: