[Libreoffice-commits] online.git: loleaflet/src
Pedro Pinto Silva (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 21 15:10:55 UTC 2020
loleaflet/src/control/Control.JSDialogBuilder.js | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 1fb8e2475464d7adc6fb7d3590ad0f72a1e9a0e9
Author: Pedro Pinto Silva <pedro.silva at collabora.com>
AuthorDate: Tue Jul 21 15:48:58 2020 +0200
Commit: Pedro Silva <pedro.silva at collabora.com>
CommitDate: Tue Jul 21 17:10:36 2020 +0200
Notebookbar: make tabs collapsing and extending
- by clicking again in the selected tab title
Change-Id: Idbb0892f341865cd9696f9037b87146f7a3cc3a8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99146
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Tested-by: Jenkins
Reviewed-by: Pedro Silva <pedro.silva at collabora.com>
diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index 967e2bd7b..1519947b3 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -653,6 +653,14 @@ L.Control.JSDialogBuilder = L.Control.extend({
_createTabClick: function(builder, t, tabs, contentDivs, tabIds)
{
return function() {
+ if ($(tabs[t]).hasClass('selected') && !$('#document-container').hasClass('tabs-collapsed')) {
+ $('#document-container').css('top', '38px');
+ $('#document-container').addClass('tabs-collapsed');
+ }
+ else if ($(tabs[t]).hasClass('selected') && $('#document-container').hasClass('tabs-collapsed')) {
+ $('#document-container').css('top', '120px');
+ $('#document-container').removeClass('tabs-collapsed');
+ }
$(tabs[t]).addClass('selected');
for (var i = 0; i < tabs.length; i++) {
if (i !== t)
More information about the Libreoffice-commits
mailing list