1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[AutoScroll] Fix scroll indicator position on Windows

For some reason, m_indicator->width() returns bigger value after
the first show/hide of indicator.
This commit is contained in:
David Rosca 2014-05-12 12:29:49 +02:00
parent 690d67ade8
commit f83521ebb4
2 changed files with 3 additions and 3 deletions

View File

@ -181,8 +181,8 @@ bool AutoScroller::showIndicator(WebView* view, const QPoint &pos)
m_view = view; m_view = view;
QPoint p; QPoint p;
p.setX(pos.x() - m_indicator->width() / 2); p.setX(pos.x() - m_indicator->pixmap()->width() / 2);
p.setY(pos.y() - m_indicator->height() / 2); p.setY(pos.y() - m_indicator->pixmap()->height() / 2);
m_indicator->setParent(view->overlayWidget()); m_indicator->setParent(view->overlayWidget());
m_indicator->move(p); m_indicator->move(p);

View File

@ -36,7 +36,7 @@ PluginSpec AutoScrollPlugin::pluginSpec()
spec.name = "AutoScroll"; spec.name = "AutoScroll";
spec.info = "AutoScroll plugin"; spec.info = "AutoScroll plugin";
spec.description = "Provides support for autoscroll with middle mouse button"; spec.description = "Provides support for autoscroll with middle mouse button";
spec.version = "0.1.4"; spec.version = "0.1.5";
spec.author = "David Rosca <nowrep@gmail.com>"; spec.author = "David Rosca <nowrep@gmail.com>";
spec.icon = QPixmap(":/autoscroll/data/scroll_all.png"); spec.icon = QPixmap(":/autoscroll/data/scroll_all.png");
spec.hasSettings = true; spec.hasSettings = true;