[Libreoffice-commits] online.git: Branch 'libreoffice-5-3' - loleaflet/dist
Pranav Kant
pranavk at collabora.co.uk
Thu Mar 23 12:40:42 UTC 2017
loleaflet/dist/toolbar/toolbar.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 42635fd529bd814758385ee0f75dfbae09e400a4
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Fri Dec 16 18:44:40 2016 +0530
loleaflet: Don't move items to 'toolbar-more' after resizebreak
Change-Id: I9660e84f68cde2ab5eed6871d4f3948a736575b9
Reviewed-on: https://gerrit.libreoffice.org/35464
Reviewed-by: pranavk <pranavk at collabora.co.uk>
Tested-by: pranavk <pranavk at collabora.co.uk>
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 3cd45321..22630b3d 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -27,6 +27,9 @@ function resizeToolbar() {
// move items from toolbar-up -> toolbar-up-more
while ($('#toolbar-up')[0].scrollWidth > Math.max($(window).width(), parseInt($('body').css('min-width')))) {
var itemId = toolbarUp.items[toolbarUp.items.length - 4].id;
+ if (itemId === 'resizebreak') {
+ return;
+ }
item = toolbarUp.get(itemId);
toolbarUp.remove(itemId);
toolbarUpMore.insert(toolbarUpMore.items[0], item);
@@ -347,7 +350,7 @@ $(function () {
{type: 'html', id: 'styles', html: '<select class="styles-select"></select>'},
{type: 'html', id: 'fonts', html: '<select class="fonts-select"></select>'},
{type: 'html', id: 'fontsizes', html: '<select class="fontsizes-select"></select>'},
- {type: 'break'},
+ {type: 'break', id: 'resizebreak'},
{type: 'button', id: 'bold', img: 'bold', hint: _('Bold'), uno: 'Bold'},
{type: 'button', id: 'italic', img: 'italic', hint: _('Italic'), uno: 'Italic'},
{type: 'button', id: 'underline', img: 'underline', hint: _('Underline'), uno: 'Underline'},
More information about the Libreoffice-commits
mailing list