summaryrefslogtreecommitdiffstats
path: root/core/js/apps.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-28 12:23:57 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-28 12:23:57 +0200
commit7303b68577979bfe53859157f60659bfb3c6000e (patch)
treeea7665217d90cb05528cb85ed1e159524aa401ed /core/js/apps.js
parentd3fc28a6ba7f7a5a10e9567ddb757c8794ffcaa5 (diff)
downloadnextcloud-server-7303b68577979bfe53859157f60659bfb3c6000e.tar.gz
nextcloud-server-7303b68577979bfe53859157f60659bfb3c6000e.zip
Fix controls bar calculation
Controls bar calculation needs to take the sidebar visibility into account. Recalculation is now triggered when sidebar is toggled, using a new app-content event "appresized".
Diffstat (limited to 'core/js/apps.js')
-rw-r--r--core/js/apps.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/apps.js b/core/js/apps.js
index f148de3b2e9..d8f4bfdf1c5 100644
--- a/core/js/apps.js
+++ b/core/js/apps.js
@@ -27,8 +27,8 @@
*/
exports.Apps.showAppSidebar = function($el) {
var $appSidebar = $el || $('#app-sidebar');
- $appSidebar.removeClass('disappear')
- $('#app-content').addClass('with-app-sidebar');
+ $appSidebar.removeClass('disappear');
+ $('#app-content').addClass('with-app-sidebar').trigger(new $.Event('appresized'));
};
@@ -41,7 +41,7 @@
exports.Apps.hideAppSidebar = function($el) {
var $appSidebar = $el || $('#app-sidebar');
$appSidebar.addClass('disappear');
- $('#app-content').removeClass('with-app-sidebar');
+ $('#app-content').removeClass('with-app-sidebar').trigger(new $.Event('appresized'));
};
/**