Merge pull request #5209 from CodingFabian/text-layer-transform-origin

Set transformOrigin for text layer in css.
This commit is contained in:
Tim van der Meij 2014-08-19 22:59:55 +02:00
commit b4fb1e21e7
2 changed files with 8 additions and 7 deletions

View File

@ -91,7 +91,6 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {
transform = 'rotate(' + rotation + 'deg) ' + transform; transform = 'rotate(' + rotation + 'deg) ' + transform;
} }
CustomStyle.setProp('transform' , textDiv, transform); CustomStyle.setProp('transform' , textDiv, transform);
CustomStyle.setProp('transformOrigin' , textDiv, '0% 0%');
} }
} }

View File

@ -1027,7 +1027,7 @@ html[dir='rtl'] .verticalToolbarSeparator {
} }
.horizontalToolbarSeparator { .horizontalToolbarSeparator {
display: block; display: block;
margin: 0 0 4px 0; margin: 0 0 4px 0;
height: 1px; height: 1px;
width: 100%; width: 100%;
@ -1305,8 +1305,6 @@ canvas {
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
color: #000;
font-family: sans-serif;
overflow: hidden; overflow: hidden;
} }
@ -1315,6 +1313,11 @@ canvas {
position: absolute; position: absolute;
white-space: pre; white-space: pre;
cursor: text; cursor: text;
-webkit-transform-origin: 0% 0%;
-moz-transform-origin: 0% 0%;
-o-transform-origin: 0% 0%;
-ms-transform-origin: 0% 0%;
transform-origin: 0% 0%;
} }
.textLayer .highlight { .textLayer .highlight {
@ -1489,7 +1492,7 @@ canvas {
} }
.dialog .separator { .dialog .separator {
display: block; display: block;
margin: 4px 0 4px 0; margin: 4px 0 4px 0;
height: 1px; height: 1px;
width: 100%; width: 100%;
@ -1672,7 +1675,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
background: url(images/toolbarButton-menuArrows@2x.png) no-repeat; background: url(images/toolbarButton-menuArrows@2x.png) no-repeat;
background-size: 7px 16px; background-size: 7px 16px;
} }
html[dir='ltr'] .toolbarButton#sidebarToggle::before { html[dir='ltr'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle@2x.png); content: url(images/toolbarButton-sidebarToggle@2x.png);
} }
@ -1962,4 +1965,3 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
display: none; display: none;
} }
} }