fixed bug in the way the tweetWidget restored itself after that the annotation popcorn-port
authorhamidouk
Fri, 30 Dec 2011 16:02:12 +0100
branchpopcorn-port
changeset 554 de53cbe1b052
parent 553 10d08f43c534
child 555 f375dca56311
fixed bug in the way the tweetWidget restored itself after that the annotation creation widget was minimized.
src/js/widgets/tweetsWidget.js
--- a/src/js/widgets/tweetsWidget.js	Fri Dec 30 16:01:09 2011 +0100
+++ b/src/js/widgets/tweetsWidget.js	Fri Dec 30 16:02:12 2011 +0100
@@ -5,7 +5,7 @@
 
   this._displayingTweet = false;
   this._timeoutId = undefined; 
-  this._hidden = false;
+  this._hidden = false; /* hidden means that the createAnnotationWidget is shown */
 };
 
 
@@ -133,7 +133,10 @@
     this.selector.hide();
     this._hidden = true;
   } else {
-    this.selector.show();
+    if (this._displayingTweet !== false)
+      this.selector.show();
+      
+    
     this._hidden = false;
   }
 };
\ No newline at end of file