mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-22 09:47:01 +02:00
fix border sizing
This commit is contained in:
@@ -927,7 +927,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||
<div
|
||||
className="excalidraw__embeddable__outer"
|
||||
style={{
|
||||
padding: `${el.strokeWidth}px`,
|
||||
padding: `${el.strokeWidth/el.scale[0]}px`,
|
||||
}}
|
||||
>
|
||||
{this.props.renderEmbeddable?.(el, this.state) ?? (
|
||||
|
@@ -13,6 +13,7 @@ import {
|
||||
isInitializedImageElement,
|
||||
isArrowElement,
|
||||
hasBoundTextElement,
|
||||
isEmbeddableElement,
|
||||
} from "../element/typeChecks";
|
||||
import { getElementAbsoluteCoords } from "../element/bounds";
|
||||
import type { RoughCanvas } from "roughjs/bin/canvas";
|
||||
@@ -518,7 +519,8 @@ const drawElementFromCanvas = (
|
||||
|
||||
if (
|
||||
"scale" in elementWithCanvas.element &&
|
||||
!isPendingImageElement(element, renderConfig)
|
||||
!isPendingImageElement(element, renderConfig) &&
|
||||
!isEmbeddableElement(element)
|
||||
) {
|
||||
context.scale(
|
||||
elementWithCanvas.element.scale[0],
|
||||
|
Reference in New Issue
Block a user