|
|
@ -108,7 +108,7 @@ export class LayerController extends Controller { |
|
|
|
height: offset.height || (w.outerHeight() - (offset.top || 0) - (offset.bottom || 0)) || "", |
|
|
|
height: offset.height || (w.outerHeight() - (offset.top || 0) - (offset.bottom || 0)) || "", |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const { top, left, scaleY, scaleX } = getPositionRelativeContainingBlockRect(layout.element[0]); |
|
|
|
const { top, left, scaleY, scaleX } = getPositionRelativeContainingBlockRect(layout.element[0].parentNode); |
|
|
|
|
|
|
|
|
|
|
|
css.top = (css.top - top) / scaleY; |
|
|
|
css.top = (css.top - top) / scaleY; |
|
|
|
css.left = (css.left - left) / scaleX; |
|
|
|
css.left = (css.left - left) / scaleX; |
|
|
|