summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-11-30 10:54:29 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2011-11-30 10:54:29 +0100
commit29c58328af0d9ec8fa77253451e8d4801b372db3 (patch)
tree56a4cf5c64c344d9dc1ffafd30c1e1faa2126425
parent4c2626ad56b871cf3b12cdfa786e632b3f29a71e (diff)
Since from to to heights are the same this is a noop, but it seems more correct this way.
-rw-r--r--client/collapser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/collapser.cc b/client/collapser.cc
index a802396..2057a0e 100644
--- a/client/collapser.cc
+++ b/client/collapser.cc
@@ -32,8 +32,8 @@
#include "debug.h"
-#define ANIM_TIME 300 // ms
-#define ANIM_INTERVAL 5 // ms
+#define ANIM_TIME 100 // ms
+#define ANIM_INTERVAL 50 // ms
Collapser::Collapser(QWidget *current, QScrollArea *scroll)
{
@@ -113,7 +113,7 @@ void Collapser::anim()
// Make sure we don't 'bounce' around when animating to the same height.
int height;
if(placeholder.fromHeight() == placeholder.toHeight()) {
- height = placeholder.fromHeight();
+ height = placeholder.toHeight();
} else {
height = (int)((1 - y) * placeholder.fromHeight() +
y * placeholder.toHeight());