From 869d237d2f1675068423f664f13ce5b0f8707218 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 9 May 2014 10:19:24 +0200 Subject: [PATCH] editor: fix canvas widgets positioning for inline elements aligned to the left of the canvas Putting widgets after content wrapper makes sure the whole node wrapper, when displayed inline, starts on the same line as its first real content. Without this change, the zero length widgets wrapper could land at the end of one line while content wrapper landed on the next one. This caused the whole node wrapper to start above real content making widgets positioning invalid. --- src/editor/modules/documentCanvas/canvas/documentElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/modules/documentCanvas/canvas/documentElement.js b/src/editor/modules/documentCanvas/canvas/documentElement.js index 7acf7c8..e374a86 100644 --- a/src/editor/modules/documentCanvas/canvas/documentElement.js +++ b/src/editor/modules/documentCanvas/canvas/documentElement.js @@ -102,7 +102,7 @@ $.extend(DocumentNodeElement.prototype, { contentContainer = $('
') .attr('document-element-content', ''); - wrapper.append(widgetsContainer, contentContainer); + wrapper.append(contentContainer, widgetsContainer); widgetsContainer.find('*').add(widgetsContainer).attr('tabindex', -1); return wrapper; }, -- 2.20.1