Skip to content

Commit

Permalink
Merge 5a2c08b into 5390f40
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdaodao committed Nov 2, 2021
2 parents 5390f40 + 5a2c08b commit d8d680f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/message/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Message = function(options) {
}
instance.$mount();
document.body.appendChild(instance.$el);
let verticalOffset = options.offset || 20;
let verticalOffset = options.offset === 0 ? options.offset : (options.offset || 20);
instances.forEach(item => {
verticalOffset += item.$el.offsetHeight + 16;
});
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/table-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export default {
let rect = target.getBoundingClientRect();

const bodyStyle = document.body.style;
if (rect.width > 12 && rect.right - event.pageX < 8) {
if (rect.width > 12 && rect.right - event.clientX < 8) {
bodyStyle.cursor = 'col-resize';
if (hasClass(target, 'is-sortable')) {
target.style.cursor = 'col-resize';
Expand Down

0 comments on commit d8d680f

Please sign in to comment.