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) ...@@ -687,9 +687,10 @@ void Monitor::slotForceSize(QAction *a)
case 50: case 50:
// resize full size // resize full size
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
profileHeight += m_glMonitor->m_displayRulerHeight;
m_videoWidget->setMinimumSize(profileWidth, profileHeight); m_videoWidget->setMinimumSize(profileWidth, profileHeight);
m_videoWidget->setMaximumSize(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; break;
default: default:
// Free resize // Free resize
......
...@@ -101,6 +101,14 @@ Item { ...@@ -101,6 +101,14 @@ Item {
controller.rulerHeight = root.zoomOffset controller.rulerHeight = root.zoomOffset
} }
} }
onHeightChanged: {
if (audioThumb.stateVisible && root.permanentAudiothumb && audioThumb.visible) {
controller.rulerHeight = audioThumb.height + root.zoomOffset
} else {
controller.rulerHeight = root.zoomOffset
}
}
function updatePalette() { function updatePalette() {
clipMonitorRuler.forceRepaint() 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