From 400ffb7f07c512a983859dadc7fea00f0ec1be5c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 2 Oct 2013 16:45:54 +0200 Subject: [PATCH] [FIX] disable relative positioning of cke widget wrapper It's only used to be able to position the drag & drop widget absolutely, and we've already disabled that one. Product page is a gory mess of absolute positioning, if product images are changed into a t-field the relative positioning on the wrapper makes the image itself disappear completely. bzr revid: xmo@openerp.com-20131002144554-1rg4zmwu0btf0r0f --- addons/website/static/src/css/editor.css | 4 ++++ addons/website/static/src/css/editor.sass | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index 51ed40bcf42..b77e900d9f2 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -154,6 +154,10 @@ table.editorbar-panel td.selected { margin-bottom: 0.5em; } +.cke_widget_wrapper { + position: static !important; +} + .cke_widget_drag_handler_container { display: none !important; } diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index e74c81932a4..4f962f02151 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -129,6 +129,10 @@ table.editorbar-panel .modal .image-preview margin-bottom: 0.5em +// wrapper positioned relatively for drag&drop widget which is disabled below. +// Breaks completely horribly crazy products listing page, so take it out. +.cke_widget_wrapper + position: static !important // "remove" drag & drop of CKE widgets .cke_widget_drag_handler_container display: none !important