COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: busterbbg on 15 Jun 2016 04:03:45 PM

Title: incorrect display in CHROME
Post by: busterbbg on 15 Jun 2016 04:03:45 PM
Using Report Studio 10.2, I have a report with 2 blocks in the page body. The top block displays 2 charts the bottom block displays a detail list. It displays properly in IE but in CHROME the bottom block overlays the top block. Need it to work with both browsers.  Any suggestions?
Title: Re: incorrect display in CHROME
Post by: Robl on 16 Jun 2016 09:01:21 AM
Add a 2 row 1 column table to the report.
Put the blocks into the table cells.

You might find the table is better at forcing the browsers to format correctly.



Title: Re: incorrect display in CHROME
Post by: Seveman on 16 Jun 2016 09:47:27 AM
In my short and horrible experience with Cognos and Chrome the best solution is to tell users that don't want to use iExplorer to use Firefox and still you'll have to deal with some issues.
Title: Re: incorrect display in CHROME
Post by: dougp on 16 Jun 2016 10:15:14 AM
I agree with Robl, however...

Cognos is just writing HTML.  Blocks become DIV elements, which should flow just fine.  I'm wondering what properties are set to make them display that way in Chrome.  I would expect Chrome to display it correctly because it follows web standards and IE not to because it doesn't.

Can you reproduce the problem using one of the GOSales databases and upload your report spec?
Title: Re: incorrect display in CHROME
Post by: Robl on 16 Jun 2016 10:51:53 AM
I'd hazard a guess that the block is set to a fixed size but the contents are larger than the block.

You could try changing setting about adding scrollbars or clipping content which would probably/possibly fix it.
But, I think it's always good practice to use a table so I went with that solution first.
Title: Re: incorrect display in CHROME
Post by: sdf on 16 Jun 2016 08:23:23 PM
does changing the zoom level in Chrome changes anything?
Title: Re: incorrect display in CHROME
Post by: busterbbg on 17 Jun 2016 11:18:27 AM
Well I tried all of the suggestions and none of them worked. And for very good reasons, I made a stupid error, I had mistakenly put in 20px for the height of block when I meant to put in 20px for the margin of block.  :-[
So both Robl and dougp were correct.
Robl: the block was set to a fixed size and the content was larger than the block.
dougp: Chrome was displaying it correctly (as I coded it, and therefore showing the overlay). IE was giving a good display on the screen (no overlay) but it was not following the formatting that I had coded.
Sorry for the confusion and thank you all for your help.