mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Wrap excalidraw in position relative & hide scrollbars in zen mode (#3174)
* fix: wrap excalidraw in position relative so that host need not add it explicitly to fix positioning when non zero offsets * patch version * Hide scrollbars on excalidraw container * remove overflow hidden from index.html since its handled in excalidraw container * review fix * update changelog
This commit is contained in:
parent
07e71a8071
commit
eb24e8ffe4
5 changed files with 12 additions and 7 deletions
|
@ -414,8 +414,6 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
zenModeEnabled,
|
||||
width: canvasDOMWidth,
|
||||
height: canvasDOMHeight,
|
||||
offsetTop,
|
||||
offsetLeft,
|
||||
viewModeEnabled,
|
||||
} = this.state;
|
||||
|
||||
|
@ -433,8 +431,6 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
style={{
|
||||
width: canvasDOMWidth,
|
||||
height: canvasDOMHeight,
|
||||
top: offsetTop,
|
||||
left: offsetLeft,
|
||||
}}
|
||||
>
|
||||
<LayerUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue