projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be41e44
)
Dirty hack to fix the scrolling issues for now, will investigate the actual reason...
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 28 Aug 2008 14:07:51 +0000
(16:07 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 28 Aug 2008 14:09:14 +0000
(16:09 +0200)
src/qtui/chatview.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatview.cpp
b/src/qtui/chatview.cpp
index
02d61b2
..
96e8d94
100644
(file)
--- a/
src/qtui/chatview.cpp
+++ b/
src/qtui/chatview.cpp
@@
-74,6
+74,9
@@
void ChatView::sceneHeightChangedAt(qreal ypos, qreal hdiff) {
void ChatView::verticalScrollbarChanged(int newPos) {
QAbstractSlider *vbar = verticalScrollBar();
Q_ASSERT(vbar);
void ChatView::verticalScrollbarChanged(int newPos) {
QAbstractSlider *vbar = verticalScrollBar();
Q_ASSERT(vbar);
+
+ // FIXME dirty hack to battle the "I just scroll up a pixel on hide()/show()" problem
+ if(vbar->maximum() - vbar->value() < 5) vbar->setValue(vbar->maximum());
if(newPos < _lastScrollbarPos) {
int relativePos = 100;
if(newPos < _lastScrollbarPos) {
int relativePos = 100;