summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-23 13:33:49 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-23 13:33:49 +0200
commit3a0f8227679af7199c0fe4d7ac1bdcf4f68cd943 (patch)
treea010573664a725b9cff1e0e69793130e522697c7 /skins
parentbcc1590663e05131dbce8b6a06c2a406b437989c (diff)
Improve screen min-width calculation
Diffstat (limited to 'skins')
-rw-r--r--skins/larry/mail.css1
-rw-r--r--skins/larry/ui.js12
2 files changed, 6 insertions, 7 deletions
diff --git a/skins/larry/mail.css b/skins/larry/mail.css
index d653c7804..0af34f371 100644
--- a/skins/larry/mail.css
+++ b/skins/larry/mail.css
@@ -388,7 +388,6 @@ a.iconbutton.threadmode.selected {
position: absolute;
right: 0;
top: 0;
- width: 400px;
}
#mailpreviewtoggle {
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index ccc9cef67..a8572720b 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -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){