Closed (fixed)
Project:
Scald: Media Management made easy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2013 at 14:21 UTC
Updated:
27 Dec 2013 at 15:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gifad commentedAttached patch introduces
atom_wrapper.css("width", atom_wrapper.find("img").css("width"));in dnd-library.js (could be elsewhere), and another in ckeditor/plugin.js, to be active in wysiwyg.Comment #2
jcisio commentedI think CSS is better. The wrapper DIV with "display:table" should work in every major browser.
Comment #3
jcisio commentedI've just tested. The following CSS works:
Comment #4
gifad commentedwhich wrapper do you assign “display: table;” ?
I tried all combinations on the 3 wrappers, and no one works...
I suppose you have permissions to hack the source html of the home page at http://scald-d7.ows.fr/ (to wrap “#0 - Scald Module (Media Management Suite on drupal) : Introduction, by Sylvain Moreau”)
Comment #5
gifad commentedFound a CSS only solution (thanks Alsacréations)...
Comment #6
gifad commentedFound a far better solution (thanks spark-8.x-1.0-alpha10/core/modules/filter/css/filter.caption.css)
It works both for the figcaption with scald_image html5 player, and for the legend with default player...
Bumped to major, as it pushes scald ahead of any D7 project ...
Comment #7
gifad commentedjcisio suggestion doesn't work, at least with safari, if the theme css includes the now usual rule :
img { max-width: 100%; }
this can be fixed by
.dnd-atom-wrapper img { max-width: none; }
Well, now, I realize that all of this is css stuff, that need not to be integrated in scald core;
scald is media management made easy, presentation is another story ;)
Comment #8
jcisio commentedI tested in Chrome and it worked. It's weird that it does not work it Safari.
Those tons of CSS in Spark is not necessary, 95% of them are resetting or customisation which is not something that everyone needs. We need only a minimum working CSS rules.
Comment #9
jcisio commentedTry around then commit 9391e72, which basically is a light version of #6. Thanks!
Comment #10
jcisio commented