On 07/06/2012 12:31 PM, Philippe Nobili wrote:
>
> We did not realize this until recently, but it seems that the behavior
> of some CSS layout functions have changed in XXE, at least since XXE
> 5.0.0 (although we cannot say exactly starting from which release).
>
> For example, we use in our CSS sylesheet the following statement:
>
> row(cell(content(" Short Help: ",text-field(attribute,
> "Longname",columns, 32,background-color,#E0FEFF)),color,#0000FF)),
>
> *row_xxe500.png* ==> This is how it looked like in XXE 5.0.0 (this is
> what was expected)
>
> *row_xxe530.png* ==> This is how is looks like now in XXE 5.3.0: the row
> is now broken into multiple lines, which is definitely not what was
> intended...
>
> The same applies for all the rows/row CCS placements we are using, which
> give awful results in XXE 5.3.0.
>

As of v5.2, XXE makes inline-block and inline-table elements as narrow 
as possible. Before this version, this was also the case but this was 
not implemented as consistently as it is now.

Normally, the solution for this kind of problem is to add a CSS width 
property (for now, supported only by tables and images) or a CSS 
property "white-space:nowrap;" to the ``object'' which is too narrow.

Example 1 (not tested):
---
row(cell(
content(" Short Help: ",
         text-field(attribute, "Longname",
                    columns, 32,
                    background-color, #E0FEFF)),
color, #0000FF,
width, 40em))
---

Example 2 (not tested):
---
row(cell(
content(" Short Help: ",
         text-field(attribute, "Longname",
                    columns, 32,
                    background-color, #E0FEFF)),
color, #0000FF,
white-space, nowrap))
---
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to