Improve screen min-width calculation

pull/73/merge
Aleksander Machniak 11 years ago
parent bcc1590663
commit 3a0f822767

@ -388,7 +388,6 @@ a.iconbutton.threadmode.selected {
position: absolute;
right: 0;
top: 0;
width: 400px;
}
#mailpreviewtoggle {

@ -204,12 +204,6 @@ function rcube_mail_ui()
}
}
// set min-width to show all toolbar buttons
var screen = $('.minwidth');
if (screen.length) {
screen.css('min-width', $('.toolbar').width() + $('#quicksearchbar').parent().width() + 20);
}
// turn a group of fieldsets into tabs
$('.tabbed').each(function(idx, elem){ init_tabs(elem); })
@ -247,6 +241,12 @@ function rcube_mail_ui()
});
});
// set min-width to show all toolbar buttons
var screen = $('body > div.minwidth');
if (screen.length) {
screen.css('min-width', $('.toolbar').width() + $('#quicksearchbar').width() + $('#searchfilter').width() + 30);
}
$(document.body)
.bind('mouseup', body_mouseup)
.bind('keyup', function(e){

Loading…
Cancel
Save