Community
Participate
Working Groups
Steps To Reproduce: 1. Create Grid element with 3 columns and 1 row in empty report 2. Make "width" property of Grid empty 3. Set "Can shrink" to true 4. Put label in each cell of grid 5. Enter "aaaa", "aaaaaaaa", "aaaaaaaaaaaa" values in corresponded label 6. Swich to preview - the grid has 100% width and output look like: aaaa aaaaaaaa aaaaaaaaaaaa | but should aaaa aaaaaaaa aaaaaaaaaaaa| The same incorrect behavior for table item. It is regression because it worked in 2.1.1 More information: HTML emmiter always produce <table cellpadding="0" style=" border-collapse: collapse; empty-cells: show; width:100%;"> in spite of width is empty. Probably "Can shrink" property should do somethink else but there is not description of it in help. In any case if "width" property is empty HTML emmiter should not set 100% width. Related bugs: https://bugs.eclipse.org/bugs/show_bug.cgi?id=207020 https://bugs.eclipse.org/bugs/show_bug.cgi?id=177498
It is important for us because BIRT does not provide ability to put several elements into one line (somethink like X-layout) and simplest way to do it is table which can shrink by width.
Created attachment 89804 [details] An example of workaround. Here is a workaround: Set the table's width to 1%. If this workaround can work, I will set this bug as duplicated of the bug 207020. Thanks.
Yes it works, but I not sure that this bug could be marked as duplicate of #207020. Because I reported about wrong behavior but 207020 is improvement.
And once more - in PDF format this report with such workaround looks very ugly! So I realy think that this bug not the same as 207020 and can not be marked as duplicate. The first - this bug about incorrect behavior of HTML emmiter and the second - this functionality was in past (BIRT 2.1.1) and is lost now.
In current BIRT, table's "shrink" has different meaning with other element. We only use the table's "shrink" to decide outputting "fixed" or not. We chose this solution, because PDF can't implement the table's "shrink" completely. So if a table doesn't have a width, we will output the width as "100%". We can make an improvement for HTML: don't output the width for a shrink table. But we can't change the PDF output. PS: after the change, the table's shrink will have different meaning between HTML and PDF. Thanks.
Fixed. Now shrink table will not output the 100% as the default width in HTML. Hi, Kirill A. Balod. You can download current BIRT code and try it again: 1. remove the default width 100% from the table. 2. set the true to the table's shrink. 3. if you want an inline table, please set the display of the table as inline. Thanks.