summaryrefslogtreecommitdiff
path: root/client/collapser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/collapser.cc')
-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());