Fix clip monitor image vertical offset on resize

parent 11bd9964
Pipeline #26577 passed with stage
in 10 minutes and 7 seconds
......@@ -687,9 +687,10 @@ void Monitor::slotForceSize(QAction *a)
case 50:
// resize full size
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
profileHeight += m_glMonitor->m_displayRulerHeight;
m_videoWidget->setMinimumSize(profileWidth, profileHeight);
m_videoWidget->setMaximumSize(profileWidth, profileHeight);
setMinimumSize(QSize(profileWidth, profileHeight + m_toolbar->height() + m_glMonitor->getControllerProxy()->rulerHeight()));
setMinimumSize(QSize(profileWidth, profileHeight + m_toolbar->height()));
break;
default:
// Free resize
......
......@@ -102,6 +102,14 @@ Item {
}
}
onHeightChanged: {
if (audioThumb.stateVisible && root.permanentAudiothumb && audioThumb.visible) {
controller.rulerHeight = audioThumb.height + root.zoomOffset
} else {
controller.rulerHeight = root.zoomOffset
}
}
function updatePalette() {
clipMonitorRuler.forceRepaint()
}
......
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