Skip to content

Commit

Permalink
fix(*): bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ctank committed Jul 17, 2019
1 parent 8a4f26d commit e73352d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/draw/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Draw extends Operation {
const { width, height } = options.pageStyle

const $layout = $container.find('.bpd-layout')
const layoutPos = $layout.offset()
const layoutPos = $layout.position()
const range = {
x: restoreScale(0),
y: restoreScale(0),
Expand All @@ -175,8 +175,8 @@ class Draw extends Operation {
const ids = DrawUtils.getElementIdsByRange(range)
const shapeBox = DrawUtils.getElementsBox(ids)
const screenBox = {
x: layoutPos.left,
y: layoutPos.top,
x: Math.abs(layoutPos.left),
y: Math.abs(layoutPos.top),
width: $container.width(),
height: $container.height()
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const createContainer = options => {

class BPDCore {
constructor(options = {}) {
this.version = '0.1.4'
this.version = '1.1.0-beta.2'
// 配置
this.options = Object.assign({}, DEFAULT_OPTIONS, options)
// 容器
Expand Down

0 comments on commit e73352d

Please sign in to comment.