Commit 7a3308be authored by luyikei's avatar luyikei

Timeline: Set the timeline length only if it's smaller than an actual value

parent 403c0a5d
......@@ -447,8 +447,10 @@ Rectangle {
Connections {
target: workflow
onLengthChanged: {
page.length = length;
zoomIn( sView.width / ( ftop( length ) + initPosOfCursor + 100 ) );
if ( page.length < length ) {
page.length = length;
zoomIn( sView.width / ( ftop( length ) + initPosOfCursor + 100 ) );
}
}
}
......
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