Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
34cb8ab2
Commit
34cb8ab2
authored
Jul 10, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix clip monitor image vertical offset on resize
parent
11bd9964
Pipeline
#26577
passed with stage
in 10 minutes and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
34cb8ab2
...
...
@@ -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
...
...
src/monitor/view/kdenliveclipmonitor.qml
View file @
34cb8ab2
...
...
@@ -101,6 +101,14 @@ Item {
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
()
{
clipMonitorRuler
.
forceRepaint
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment