Skip to content

Commit

Permalink
notebookbar: remove menubartoolitem for zoomin
Browse files Browse the repository at this point in the history
Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: Ibf40b80b77a50f8913a26f35e9cc111dac6819b7
  • Loading branch information
eszkadev committed Aug 23, 2024
1 parent 7437156 commit c5621ce
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion browser/src/control/Control.Menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ L.Control.Menubar = L.Control.extend({
} else if (id === 'selectbackground') {
L.DomUtil.get('selectbackground').click();
} else if (id === 'zoomin' && this._map.getZoom() < this._map.getMaxZoom()) {
this._map.zoomIn(1, null, true /* animate? */);
app.dispatcher.dispatch('zoomin');
} else if (id === 'showresolved') {
app.dispatcher.dispatch('.uno:ShowResolvedAnnotations');
} else if (id === 'zoomout' && this._map.getZoom() > this._map.getMinZoom()) {
Expand Down
3 changes: 1 addition & 2 deletions browser/src/control/Control.NotebookbarCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1186,9 +1186,8 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
{
'id': 'zoomin',
'class': 'unozoomin',
'type': 'menubartoolitem',
'type': 'customtoolitem',
'text': _UNO('.uno:ZoomPlus'),
'command': '.uno:ZoomPlus',
'accessibility': { focusBack: true, combination: 'ZI', de: null }
}
]
Expand Down
3 changes: 1 addition & 2 deletions browser/src/control/Control.NotebookbarDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,8 @@ L.Control.NotebookbarDraw = L.Control.NotebookbarImpress.extend({
{
'id': 'zoomin',
'class': 'unozoomin',
'type': 'menubartoolitem',
'type': 'customtoolitem',
'text': _UNO('.uno:ZoomPlus'),
'command': '.uno:ZoomPlus',
'accessibility': { focusBack: true, combination: 'ZI', de: null }
}
]
Expand Down
3 changes: 1 addition & 2 deletions browser/src/control/Control.NotebookbarImpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,8 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
{
'id': 'zoomin',
'class': 'unozoomin',
'type': 'menubartoolitem',
'type': 'customtoolitem',
'text': _UNO('.uno:ZoomPlus'),
'command': '.uno:ZoomPlus',
'accessibility': { focusBack: true, combination: 'ZI', de: null }
}
]
Expand Down
3 changes: 1 addition & 2 deletions browser/src/control/Control.NotebookbarWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1432,9 +1432,8 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
{
'id': 'zoomin',
'class': 'unozoomin',
'type': 'menubartoolitem',
'type': 'customtoolitem',
'text': _UNO('.uno:ZoomPlus'),
'command': '.uno:ZoomPlus',
'accessibility': { focusBack: true, combination: 'ZI', de: null }
}
]
Expand Down

0 comments on commit c5621ce

Please sign in to comment.