mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-24 07:32:44 +00:00
Monotone-Parent: c1039e97ecb95a8e1dd4a1ca25d457f206daeac3
Monotone-Revision: f4831aba087ab84c9ea8408610dcf9769966b8b8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-18T17:18:48 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -305,12 +305,11 @@ function onWindowResize(event) {
|
||||
var attachmentswidth = 0;
|
||||
if (attachmentsarea.style.display)
|
||||
attachmentswidth = attachmentsarea.getWidth();
|
||||
var windowwidth = (typeof self.innerWidth == "number" ? self.innerWidth : document.body.clientWidth);
|
||||
var subjectfield = $(document).getElementsByClassName('headerField', $('subjectRow'))[0];
|
||||
var subjectinput = $(document).getElementsByClassName('textField', $('subjectRow'))[0];
|
||||
|
||||
// Resize subject field
|
||||
subjectinput.setStyle({ width: (windowwidth
|
||||
subjectinput.setStyle({ width: (window.width()
|
||||
- $(subjectfield).getWidth()
|
||||
- attachmentswidth
|
||||
- 4 - 30
|
||||
@@ -319,7 +318,7 @@ function onWindowResize(event) {
|
||||
// Resize address fields
|
||||
var addresslist = $('addressList');
|
||||
var firstselect = document.getElementsByClassName('headerField', addresslist)[0];
|
||||
var inputwidth = windowwidth - $(firstselect).getWidth() - attachmentswidth - 24 - 30;
|
||||
var inputwidth = $(this).width - $(firstselect).getWidth() - attachmentswidth - 24 - 30;
|
||||
var addresses = document.getElementsByClassName('textField', addresslist);
|
||||
for (var i = 0; i < addresses.length; i++) {
|
||||
addresses[i].setStyle({ width: inputwidth + 'px' });
|
||||
|
||||
Reference in New Issue
Block a user