Commit 439ea1d8 authored by Michael Zhou's avatar Michael Zhou

Modified resizeEvent(QResizeEvent *) in KisPaintOpPresetsPopup so that it...

Modified resizeEvent(QResizeEvent *) in KisPaintOpPresetsPopup so that it resizes when there is no parent.

T8646
parent 8ec37504
......@@ -671,8 +671,8 @@ void KisPaintOpPresetsPopup::showEvent(QShowEvent *)
void KisPaintOpPresetsPopup::resizeEvent(QResizeEvent* event)
{
QWidget::resizeEvent(event);
if (parentWidget()) {
QWidget::resizeEvent(event);
// Make sure resizing doesn't push this widget out of the screen
QRect screenRect = QApplication::desktop()->availableGeometry(this);
QRect newPositionRect = kisEnsureInRect(parentWidget()->geometry(), screenRect);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment