this.outerTabs = this.qjsui.top;
- this.__createDropdownMenu();
- this.__createDropdownHint();
-
this.tabs = new Element("div");
this.tabs.addClass("tabbar");
+
+ this.__createDropdownMenu();
+
this.outerTabs.appendChild(this.tabs);
this.origtopic = this.topic = this.qjsui.topic;
this.origlines = this.lines = this.qjsui.middle;
this.createInput();
this.reflow();
+
+ /* HACK, in Chrome this should work immediately but doesn't */
+ this.__createDropdownHint.delay(100, this);
},
__createDropdownMenu: function() {
var dropdownMenu = new Element("span");
dropdownEffect.start(1);
this.outerTabs.appendChild(dropdown);
- dropdownMenu.show = function(x){
+ dropdownMenu.show = function(x) {
new Event(x).stop();
this.hideHint();
dropdown.addEvent("mousedown", function(e) { new Event(e).stop(); });
dropdown.addEvent("click", dropdownMenu.show);
},
- __createDropdownHint: function() {
+ __createDropdownHint: function() {
var dropdownhint = new Element("div");
dropdownhint.addClass("dropdownhint");
dropdownhint.set("text", "Click the icon for the main menu.");