Skip to content

Commit

Permalink
Fix init bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zz85 committed May 19, 2020
1 parent 58935d7 commit 38537ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/utils/docking_window.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ function setBounds(element, x, y, w, h) {
element.style.top = y + 'px';
element.style.width = w + 'px';
element.style.height = h + 'px';

//FIXME element === pane resize(w, h);
}

/*
Expand Down Expand Up @@ -392,8 +390,11 @@ function DockingWindow(pane, ghostpane) {
document.addEventListener('touchend', onTouchEnd);

bounds = pane.getBoundingClientRect();
snapType = SNAP_DOCK_BOTTOM
resizeEdges();
snapType = SNAP_DOCK_BOTTOM;

// use setTimeout as a hack to get diemensions correctly! :(
setTimeout(() => resizeEdges());
hideGhostPane();

animate();
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/view_layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ function LayerView(layer, dispatcher) {
label.style.cssText = 'font-size: 12px; padding: 4px;';

label.addEventListener('click', function(e) {
context.dispatcher.fire('label', channelName);
// context.dispatcher.fire('label', channelName);
});

label.addEventListener('mouseover', function(e) {
context.dispatcher.fire('label', channelName);
// context.dispatcher.fire('label', channelName);
});

var dropdown = document.createElement('select');
Expand Down

0 comments on commit 38537ee

Please sign in to comment.