From af1eba2ea6344298763e77b725e54a2eb545d3fd Mon Sep 17 00:00:00 2001 From: Narciso Jaramillo Date: Fri, 6 Apr 2012 17:29:25 -0700 Subject: [PATCH] Fix edge case for horizontal scrolling fix --- src/editor/CSSInlineEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/CSSInlineEditor.js b/src/editor/CSSInlineEditor.js index b4ba27ff12f..35b467a7777 100644 --- a/src/editor/CSSInlineEditor.js +++ b/src/editor/CSSInlineEditor.js @@ -350,7 +350,7 @@ define(function (require, exports, module) { // if we're underneath the rule list on the right, we want to ask the host editor to // scroll far enough that the current cursor position is visible to the left of the rule // list. (Because we always add extra padding for the rule list, this is always possible.) - if (cursorCoords.x > ruleListOffset.left) { + if (cursorCoords.x >= ruleListOffset.left) { cursorCoords.x += this.$relatedContainer.outerWidth(); }