Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2019-10-08 23:06:03 +0300
committerAleksander Machniak <alec@alec.pl>2019-10-08 23:06:03 +0300
commit199afedb96eaf1b8fa59b4ee29af73395e7c073f (patch)
treea3c9b850fbbc6305b81a03d5340fdc546d73df08 /skins
parent1d9ddf9d336f7b903fd2748350d07c1366b92f41 (diff)
Elastic: Improve splitter element identifier
so e.g. in Settings sidebar's width is constant for all Settings pages.
Diffstat (limited to 'skins')
-rw-r--r--skins/elastic/ui.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js
index f8d71ed33..57b428871 100644
--- a/skins/elastic/ui.js
+++ b/skins/elastic/ui.js
@@ -3877,7 +3877,10 @@ function rcube_elastic_ui()
*/
function splitter_init(node)
{
- var key = rcmail.env.task + rcmail.env.action + '.' + node.attr('id'),
+ // Use id of the list element, if exists, as a part of the key, instead of action.column-id
+ // This way e.g. the sidebar in Settings is always the same width for all Settings' pages
+ var list_id = node.find('.scroller .listing').first().attr('id'),
+ key = rcmail.env.task + '.' + (list_id || (rcmail.env.action + '.' + node.attr('id'))),
pos = get_pref(key),
reverted = node.is('.sidebar-right'),
set_width = function(width) {