this.reflow = this.qjsui.reflow.bind(this.qjsui);
this.tabs.addEvent("mousewheel", function(x) {
- if(this.sideTabs)
- return;
-
var event = new Event(x);
+ var up, down;
+ if(this.sideTabs) {
+ var p = this.qjsui.left;
+
+ /* don't scroll if we're scrollable */
+ if(p.getScrollSize().y > p.clientHeight)
+ return;
- /* up */
- if(event.wheel > 0) {
+ up = event.wheel < 0;
+ down = event.wheel > 0;
+ } else {
+ up = event.wheel > 0;
+ down = event.wheel < 0;
+ }
+
+ if(up) {
this.nextWindow();
- } else if(event.wheel < 0) {
- /* down */
+ } else if(down) {
this.prevWindow();
}
event.stop();
var docsize = this.sizer.getSize();
var mheight = (docsize.y - topsize.y - bottomsize.y - topicsize.y);
- var mwidth = (docsize.x - rightsize.x);
+ var mwidth = (docsize.x - rightsize.x - leftsize.x);
left.setStyle("top", topsize.y);
topic.setStyle("top", topsize.y);
topic.setStyle("left", leftsize.x);
+ topic.setStyle("width", docsize.x - leftsize.x);
middle.setStyle("top", (topsize.y + topicsize.y));
middle.setStyle("left", leftsize.x);
initialize: function(parentObject, client, type, name, identifier) {
this.parent(parentObject, client, type, name, identifier);
- this.tab = new Element("a", {"href": "#"});
+ this.tab = new Element("a");
this.tab.addClass("tab");
this.tab.addEvent("focus", function() { this.blur() }.bind(this.tab));;
var e2 = new Element("a");
e.appendChild(e2);
- e2.href = "#";
e2.set("text", "- " + x.text);
e2.addEvent("focus", function() { this.blur() }.bind(e2));
var e = new Element("a");
qwebirc.ui.insertAt(position, this.nicklist, e);
-
- e.href = "#";
var span = new Element("span");
if(this.parentObject.uiOptions.NICK_COLOURS) {
var colour = realNick.toHSBColour(this.client);