add origin offset reset button
This commit is contained in:
parent
5532cf28e4
commit
4197377d85
6 changed files with 43 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { api } from '../../core/api.js';
|
||||
import { env, isDark } from './client.js';
|
||||
import { addbox, delbox } from '../../core/boxes.js';
|
||||
import { addbox, delbox, clearboxes } from '../../core/boxes.js';
|
||||
import { traceDone } from './cl-trace.js';
|
||||
|
||||
let showTab, lastTab, tab, iw, ic;
|
||||
|
|
@ -107,6 +107,7 @@ export function clearTabs(widget, skiprec) {
|
|||
if (!skiprec) {
|
||||
delete api.widgets.annotate(widget.id).tab;
|
||||
}
|
||||
clearboxes();
|
||||
}
|
||||
|
||||
export function updateTabs() {
|
||||
|
|
@ -198,6 +199,7 @@ export function tabAdd() {
|
|||
|
||||
export function tabDone() {
|
||||
delbox('tabb');
|
||||
clearboxes();
|
||||
api.hide.alert(alert);
|
||||
api.feature.hover = false;
|
||||
if (lastTab) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue