| Summary: | Enhancement: support background image size. | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Jun Ouyang <jouyang> |
| Component: | BIRT | Assignee: | Gang Liu <hustlg> |
| Status: | VERIFIED FIXED | QA Contact: | Tianli Zhang <tzhang> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | hustlg, jingwen.shen, rlu, wenfeng.fwd, whe, wyan, xxue |
| Version: | unspecified | Keywords: | plan |
| Target Milestone: | 2.5.0 M7 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | Autoed | ||
|
Description
Jun Ouyang
Engine needs to add CSS3 property background-size to support background image scaling. Actually those properties have been defined in CSS3 although it is still a draft. See http://www.w3.org/TR/css3-background/#background As HTML doesn¡¯t support the background-size property, so we can only support the property with following limitations. 1. Once the background-size is defined, the background-attach/background-position is not supported. 2. Once the background-size is defined, the HTML emitter need output a DIV to wrap the element. The wrap element has two children, one is used as the background with smallest z-order, and the other is used to output the element itself. 3. All other attribute are outputted to the element itself instead of the wrapped DIV. Adds two properties to Style: background-size-width, background-size-height with dimension type. It can also define choice values: "contain", "cover" and "auto". Enough to Engine team? Yes, it's enough. Also need to load background-size for CSS loader/importer. 1. added background-size-width, background-size-height properties. 2. revised code to support CSS loader/importe reassign to engine team. background-size-width, background-size-height should have the consistent value if they are set with "contain" or "cover". If the user sets one of background-size as "contain"/"cover", it is better to set the other value as same. This is a special case. fixed Engine needs to support this feature for emitters. The background image size is only supported in fixed report layout(Users can set this property both in report design and html renderOption), and pageFooterFloatFlag must be set false(Users can set this flag only in html renderOption). HTMLRenderOption options = new HTMLRenderOption( ); options.setPageFooterFloatFlag( false ); options.setLayoutPreference( "fixed" ); fixed the problem in birt2.5.0M7. Reopen this bug for other emitters to finish this problem such as :pdf, ppt support background-image-size on master page in PDF,PPT and PS Verified this case in html, ppt pdf ps and doc preview, in html preview user have to set PageFooterFloatFlag to false via engine API, it is not very convenient. For doc format, image background size is not working, please refer to bug #272611. |