Browse Source

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 years ago
parent
commit
a69908b7f0
1 changed files with 1 additions and 0 deletions
  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: