Get correct value for scrollbar width
This commit is contained in:
@@ -722,7 +722,7 @@ void SongEditor::updatePosition( const MidiTime & _t )
|
||||
{
|
||||
const int w = width() - widgetWidth
|
||||
- trackOpWidth
|
||||
- 32; // rough estimation for width of right scrollbar
|
||||
- contentWidget()->verticalScrollBar()->width(); // width of right scrollbar
|
||||
if( _t > m_currentPosition + w * MidiTime::ticksPerTact() /
|
||||
pixelsPerTact() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user