]> git.sesse.net Git - vlc/commitdiff
Qt4: small Volume, align at first show
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 27 Sep 2009 20:09:52 +0000 (22:09 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 27 Sep 2009 20:09:52 +0000 (22:09 +0200)
modules/gui/qt4/components/controller_widget.cpp

index 0111acad59234b15f6fb660fa19048ce43237d37..d6916bae3860d69f2c9df5dd7bbcc315ca828e45 100644 (file)
@@ -173,6 +173,7 @@ void SoundWidget::updateVolume()
 
 void SoundWidget::showVolumeMenu( QPoint pos )
 {
+    volumeMenu->setFixedHeight( volumeMenu->sizeHint().height() );
     volumeMenu->exec( QCursor::pos() - pos - QPoint( 0, volumeMenu->height()/2 )
                           + QPoint( width(), height() /2) );
 }