Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit f7362a22420d5c07f8a8f3994b30aa9104e48b31

Do not overlap header
  
22import qwebirc.util.qjson as json
33
44def get_options():
5 options = dict(networkName=config.NETWORK_NAME, networkServices=[config.AUTH_SERVICE], loginRegex=config. AUTH_OK_REGEX, appTitle=config.APP_TITLE, baseURL=config.BASE_URL, staticBaseURL=config.STATIC_BASE_URL, dynamicBaseURL=config.DYNAMIC_BASE_URL, channels=config.CHANNELS, languages=config.LANGUAGES, lingva_bot=config.LINGVA_BOT)
5 options = dict(networkName=config.NETWORK_NAME, networkServices=[config.AUTH_SERVICE], loginRegex=config. AUTH_OK_REGEX, appTitle=config.APP_TITLE, baseURL=config.BASE_URL, staticBaseURL=config.STATIC_BASE_URL, dynamicBaseURL=config.DYNAMIC_BASE_URL, channels=config.CHANNELS, languages=config.LANGUAGES, lingva_bot=config.LINGVA_BOT, header_height=config.HEADER_HEIGHT)
66 return json.dumps(options)
  
265265#CHANNELS = [('en', '#sugar), ...]
266266#LANGUAGES = [('en', 'English'), ...]
267267#HEADER_FILE = join(dirname(__file__), 'header.html')
268#HEADER_HEIGHT = 26
  
2424 staticBaseURL: "/"
2525 },
2626 initialize: function(element, ui, options) {
27 qwebirc.global = {dynamicBaseURL: options.dynamicBaseURL, staticBaseURL: options.staticBaseURL, channels: options.channels, languages: options.languages, lingva_bot: options.lingva_bot, irc: null, initialLanguage: null}; /* HACK */
27 qwebirc.global = {dynamicBaseURL: options.dynamicBaseURL, staticBaseURL: options.staticBaseURL, channels: options.channels, languages: options.languages, lingva_bot: options.lingva_bot, irc: null, initialLanguage: null, header_height: options.header_height}; /* HACK */
2828
2929 this.setOptions(options);
3030
  
363363 var bottomsize = bottom.getSize();
364364 var docsize = this.sizer.getSize();
365365
366 var mheight = (docsize.y - topsize.y - bottomsize.y - topicsize.y);
366 var mheight = (docsize.y - topsize.y - bottomsize.y - topicsize.y) - qwebirc.global.header_height;
367367 var mwidth = (docsize.x - rightsize.x);
368368
369369 topic.setStyle("top", topsize.y);
379379 right.setStyle("top", (topsize.y + topicsize.y));
380380 right.setStyle("left", mwidth);
381381
382 bottom.setStyle("top", (docsize.y - bottomsize.y));
382 bottom.setStyle("top", (docsize.y - bottomsize.y - qwebirc.global.header_height));
383383 this.fireEvent("reflow");
384384 },
385385 showChannel: function(state) {