Browse Source

fix sunset at the left edge of the window

pull/752/head
MuTaToR08 8 years ago
committed by GitHub
parent
commit
3433367da3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/commands/view/SelectComponent.js

2
src/commands/view/SelectComponent.js

@ -444,7 +444,7 @@ module.exports = {
}); });
var leftPos = pos.left + pos.elementWidth - pos.targetWidth; var leftPos = pos.left + pos.elementWidth - pos.targetWidth;
toolbarStyle.top = pos.top + unit; toolbarStyle.top = pos.top + unit;
toolbarStyle.left = leftPos + unit; toolbarStyle.left = (leftPos < 0 ? 0 : leftPos) + unit;
toolbarStyle.display = origDisp; toolbarStyle.display = origDisp;
}, },

Loading…
Cancel
Save