Version: 3.5.7 Reporter: James Catt —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
EE 3.5.7 introduced a fix for the non-function column width setting for grid fields (thanks for this!).
Unfortunately, I’ve discovered the width is being set improperly when adding new rows.
Pre-existing grid rows are having the width set as a percentage applied via <td width="XX%">
, which I believe is the expected behaviour. However, new grid rows are getting the number applied as a pixel-based min-width.
For clarity, if I set a column’s width to “20” in the grid field options, here’s a sample output from a pre-existing row entry:
<td class="required" data-fieldtype="text" data-column-id="33" data-row-id="2361" width="20%">
…meanwhile new row entries are output as follows:
Perhaps this is a result of the front-end JS applying the inline style without properly setting it as a percentage?
Note that once you save the entry and reload the editor, the field will output as per the first example, since presumably it’s being rendered server-side.
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```