loleaflet: set bottom position of tooltip

Change-Id: I2ff39ce70df1f87788b7d5a1233cd97d2d0af5d7
Reviewed-on: https://gerrit.libreoffice.org/56392
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
This commit is contained in:
Henry Castro 2018-06-25 07:42:59 -04:00
parent 22416fc45c
commit 276e367977

View file

@ -581,6 +581,7 @@ function createToolbar() {
var toolbar = $('#toolbar-up'); var toolbar = $('#toolbar-up');
toolbar.w2toolbar({ toolbar.w2toolbar({
name: 'toolbar-up', name: 'toolbar-up',
tooltip: 'bottom',
items: [ items: [
{type: 'menu', id: 'menu-wrap', caption: _('Textwrap'), items: [ {type: 'menu', id: 'menu-wrap', caption: _('Textwrap'), items: [
{ text: _('No wrap'), id: 'wrap-WrapOff' }, { text: _('No wrap'), id: 'wrap-WrapOff' },
@ -689,6 +690,7 @@ function createToolbar() {
toolbar = $('#formulabar'); toolbar = $('#formulabar');
toolbar.w2toolbar({ toolbar.w2toolbar({
name: 'formulabar', name: 'formulabar',
tooltip: 'bottom',
items: [ items: [
{type: 'html', id: 'left'}, {type: 'html', id: 'left'},
{type: 'html', id: 'address', html: '<input id="addressInput" type="text">'}, {type: 'html', id: 'address', html: '<input id="addressInput" type="text">'},
@ -718,6 +720,7 @@ function createToolbar() {
toolbar = $('#spreadsheet-toolbar') toolbar = $('#spreadsheet-toolbar')
toolbar.w2toolbar({ toolbar.w2toolbar({
name: 'spreadsheet-toolbar', name: 'spreadsheet-toolbar',
tooltip: 'bottom',
items: [ items: [
{type: 'button', id: 'firstrecord', img: 'firstrecord', hidden: true, hint: _('First sheet')}, {type: 'button', id: 'firstrecord', img: 'firstrecord', hidden: true, hint: _('First sheet')},
{type: 'button', id: 'prevrecord', img: 'prevrecord', hidden: true, hint: _('Previous sheet')}, {type: 'button', id: 'prevrecord', img: 'prevrecord', hidden: true, hint: _('Previous sheet')},
@ -734,6 +737,7 @@ function createToolbar() {
toolbar = $('#presentation-toolbar'); toolbar = $('#presentation-toolbar');
toolbar.w2toolbar({ toolbar.w2toolbar({
name: 'presentation-toolbar', name: 'presentation-toolbar',
tooltip: 'bottom',
items: [ items: [
{type: 'html', id: 'left'}, {type: 'html', id: 'left'},
{type: 'button', id: 'presentation', img: 'presentation', hidden:true, hint: _('Fullscreen presentation')}, {type: 'button', id: 'presentation', img: 'presentation', hidden:true, hint: _('Fullscreen presentation')},
@ -752,6 +756,7 @@ function createToolbar() {
toolbar = $('#toolbar-down'); toolbar = $('#toolbar-down');
toolbar.w2toolbar({ toolbar.w2toolbar({
name: 'toolbar-down', name: 'toolbar-down',
tooltip: 'top',
items: [ items: [
{type: 'html', id: 'search', {type: 'html', id: 'search',
html: '<div style="padding: 3px 10px;" class="loleaflet-font">' + html: '<div style="padding: 3px 10px;" class="loleaflet-font">' +