Commit 27136097 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Workaround for ensureVisible having strange behaviours on y axis

parent a2780859
......@@ -224,5 +224,10 @@ void TracksView::setScale( double scaleFactor )
void TracksView::ensureCursorVisible()
{
if ( horizontalScrollBar()->isVisible() )
m_cursorLine->ensureVisible( QRectF(), 150, 50 );
{
QRectF r( m_cursorLine->boundingRect().width() / 2,
m_cursorLine->boundingRect().height() / 2,
1, 1 );
m_cursorLine->ensureVisible( r, 150, 50 );
}
}
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