Skip to content

Commit 5f68aa4

Browse files
towerofnixbenjiwheeler
authored andcommitted
Fix RTL positioning
(A similar fix should be done for custom procedure positioning later.)
1 parent 015fce0 commit 5f68aa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/containers/target-pane.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ class TargetPane extends React.Component {
179179
const {scrollX, scrollY, scale} = metrics;
180180
const {width} = this.props.workspaceMetrics.dimensions;
181181
const posY = -scrollY + 30;
182-
let posX = -scrollX;
182+
let posX;
183183
if (this.props.isRtl) {
184-
posX += width - 30;
184+
posX = scrollX + 30;
185185
} else {
186-
posX += 30;
186+
posX = -scrollX + 30;
187187
}
188188

189189
// Actually apply the position!

0 commit comments

Comments
 (0)