diff options
| -rw-r--r-- | client/collapser.cc | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/client/collapser.cc b/client/collapser.cc index 7faf175..470db7a 100644 --- a/client/collapser.cc +++ b/client/collapser.cc @@ -151,11 +151,13 @@ void Collapser::anim()    if(x < 1) {      y = x * x * x; +    int height;      if(!is_collapsed) { -      setFixedHeight((1 - y) * c_height + y * e_height); +      height = (int)((1 - y) * c_height + y * e_height);      } else { -      setFixedHeight((1 - y) * e_height + y * c_height); +      height = (int)((1 - y) * e_height + y * c_height);      } +    setFixedHeight(height);      timer_id = startTimer(ANIM_INTERVAL);    } else { | 
