瀏覽代碼

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 年之前
父節點
當前提交
a69908b7f0
共有 1 個文件被更改,包括 1 次插入0 次删除
  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: