1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02: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;
QPoint p;
p.setX(pos.x() - m_indicator->width() / 2);
p.setY(pos.y() - m_indicator->height() / 2);
p.setX(pos.x() - m_indicator->pixmap()->width() / 2);
p.setY(pos.y() - m_indicator->pixmap()->height() / 2);
m_indicator->setParent(view->overlayWidget());
m_indicator->move(p);

View File

@ -36,7 +36,7 @@ PluginSpec AutoScrollPlugin::pluginSpec()
spec.name = "AutoScroll";
spec.info = "AutoScroll plugin";
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.icon = QPixmap(":/autoscroll/data/scroll_all.png");
spec.hasSettings = true;