summaryrefslogtreecommitdiff
path: root/skins/larry
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-08-14 10:39:05 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-08-14 10:39:05 +0200
commit0fddf7a6a23f4940fcd4c2c3b646cc4d3c01db8b (patch)
tree38f04789a961c2a970f79568e0c8be931b67bcd0 /skins/larry
parent06fdaf88cb1a355e445294beba4a89d0209ac71e (diff)
Place folder namespace selector above search box. Adjust height after box is visible and real heights can be computed
Diffstat (limited to 'skins/larry')
-rw-r--r--skins/larry/settings.css2
-rw-r--r--skins/larry/templates/folders.html2
-rw-r--r--skins/larry/ui.js4
3 files changed, 5 insertions, 3 deletions
diff --git a/skins/larry/settings.css b/skins/larry/settings.css
index b2779982c..51bf12f88 100644
--- a/skins/larry/settings.css
+++ b/skins/larry/settings.css
@@ -226,7 +226,7 @@
.listsearchbox select {
width: 100%;
- margin: 3px 0;
+ margin: 0 0 4px 0;
}
#folderslist,
diff --git a/skins/larry/templates/folders.html b/skins/larry/templates/folders.html
index 977dff451..c707d3396 100644
--- a/skins/larry/templates/folders.html
+++ b/skins/larry/templates/folders.html
@@ -22,6 +22,7 @@
<a href="#folders" class="iconbutton search" title="<roundcube:label name='findfolders' />" tabindex="0"><roundcube:label name='findfolders' /></a>
</h2>
<div class="listsearchbox">
+ <roundcube:object name="folderfilter" id="folderlist-filter" />
<div class="searchbox" role="search" aria-labelledby="aria-label-foldersearchform">
<h3 id="aria-label-foldersearchform" class="voice"><roundcube:label name="arialabelfoldersearchform" /></h3>
<label for="foldersearch" class="voice"><roundcube:label name="arialabelsearchterms" /></label>
@@ -29,7 +30,6 @@
<a class="iconbutton searchicon"></a>
<roundcube:button command="reset-foldersearch" id="folderlistsearch-reset" class="iconbutton reset" title="resetsearch" label="resetsearch" />
</div>
- <roundcube:object name="folderfilter" id="folderlist-filter" />
</div>
<div id="folderslist-content" class="scroller withfooter">
<roundcube:object name="foldersubscription" form="subscriptionform" id="subscription-table" class="treelist listing folderlist" />
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 7b08aeadd..153abdc21 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -541,7 +541,7 @@ function rcube_mail_ui()
var title = $('.boxtitle', container),
box = $('.listsearchbox', container),
dir = box.is(':visible') ? -1 : 1,
- height = 34 + ($('select', box).length ? 24 : 0);
+ height = 34 + ($('select', box).length ? 22 : 0);
box.slideToggle({
duration: 160,
@@ -553,6 +553,8 @@ function rcube_mail_ui()
box.toggleClass('expanded');
if (box.is(':visible')) {
box.find('input[type=text]').focus();
+ height = 34 + ($('select', box).length ? $('select', box).outerHeight() + 4 : 0);
+ $('.scroller', container).css('top', (title.outerHeight() + height) + 'px');
}
else {
$('a.reset', box).click();