Feature #20996

Add a the default width to the output if no width is set

Added by Georg Ringer about 12 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-09-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

If css_styled_content is used for alternative output, there can't be no width calculcated because lastImageInfo won't be filled (e.g. by showing videos). Until now a width in the content element needs to be set - otherwise it will be 0 which is wrong and breaks the output - please see attached screenshots.

Solution:
If it is 0 (why ever), don't just set it to 0 but to the default width (which is set in the constant editor)

(issue imported from #M11880)


Files

patch-csc.patch (972 Bytes) patch-csc.patch Administrator Admin, 2009-09-04 19:23
csc-before.gif (22.6 KB) csc-before.gif Administrator Admin, 2009-09-04 19:25
csc-after.gif (24.4 KB) csc-after.gif Administrator Admin, 2009-09-04 19:25
patch-csc-v2.patch (1011 Bytes) patch-csc-v2.patch Administrator Admin, 2009-09-04 20:20

Also available in: Atom PDF