Fix tool previews offset when canvas height is very small
parent
9f9b874caf
commit
70975b0730
|
@ -129,6 +129,7 @@ html, body, .jspaint {
|
|||
.selection > canvas {
|
||||
/* @TODO: maybe don't include the canvas in the DOM (is it helpful to inspect it tho? it's not critical...) */
|
||||
opacity: 0;
|
||||
/* Fix draggable part of selection going outside the selection selection is vertically thin */
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
|
@ -139,6 +140,12 @@ html, body, .jspaint {
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.helper-layer > canvas {
|
||||
/* Fix helper layer canvas going off the main canvas when main canvas is vertically thin */
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.resize-ghost,
|
||||
.component-ghost {
|
||||
pointer-events: none;
|
||||
|
|
|
@ -129,6 +129,7 @@ html, body, .jspaint {
|
|||
.selection > canvas {
|
||||
/* @TODO: maybe don't include the canvas in the DOM (is it helpful to inspect it tho? it's not critical...) */
|
||||
opacity: 0;
|
||||
/* Fix draggable part of selection going outside the selection selection is vertically thin */
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
|
@ -139,6 +140,12 @@ html, body, .jspaint {
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.helper-layer > canvas {
|
||||
/* Fix helper layer canvas going off the main canvas when main canvas is vertically thin */
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
.resize-ghost,
|
||||
.component-ghost {
|
||||
pointer-events: none;
|
||||
|
|
Loading…
Reference in New Issue