Changeset - 8a60379a2f32
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 8 years ago 2017-04-24 16:14:51
hy@ozderya.net
fix scrollbar glitch at start
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/scrollzoomer.cpp
Show inline comments
 
@@ -241,6 +241,11 @@ bool ScrollZoomer::eventFilter( QObject 
 
                layoutScrollBars( rect );
 
                break;
 
            }
 
            case QEvent::Show:
 
            {
 
                layoutScrollBars( canvas()->contentsRect() );
 
                break;
 
            }
 
            case QEvent::ChildRemoved:
 
            {
 
                const QObject *child =
 
@@ -403,6 +408,8 @@ void ScrollZoomer::updateScrollBars()
 

	
 
void ScrollZoomer::layoutScrollBars( const QRect &rect )
 
{
 
    qDebug() << "layoutScrollBars" << rect;
 

	
 
    int hPos = xAxis();
 
    if ( hScrollBarPosition() == OppositeToScale )
 
        hPos = oppositeAxis( hPos );
0 comments (0 inline, 0 general)