mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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:
parent
690d67ade8
commit
f83521ebb4
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user