Page 1 of 1

Spark 5.2 Responsive Layout Delay

Posted: 30 Jul 2015, 15:45
by placido
Hello guys,

I'm developing an application which is basically a dashboard, so there are many graphs at the page.
With Spark 5.1 version, the responsive layout was working well when the screen orientation was switched on a mobile device, but the line and bar graphs were not being resized properly.

After upgrading to Spark 5.2, I realized the graphs mentioned are now being resized correctly, however, there's a big delay to adjust the components size when switching the screen orientation, which was not happening at the previous version.

Do you have any tip for solving one of these issues?

Please, let me know if you need more information and I really appreciate any help you can provide.

Re: Spark 5.2 Responsive Layout Delay

Posted: 31 Jul 2015, 15:46
by mert.sincan
Can you please attach a sample test.xhtml and testBean for us to replicate? What spark-version are you using?

Re: Spark 5.2 Responsive Layout Delay

Posted: 31 Jul 2015, 16:45
by mert.sincan
In 5.2, responsive charts replot themselves on resize, orientation change so for a page with many graphs replotting all of them will take time so it is expected.

Re: Spark 5.2 Responsive Layout Delay

Posted: 31 Jul 2015, 19:39
by placido
Thanks for the reply, Aragorn.

Just correcting the info:
- Spark-version: 1.3
- Primefaces: 5.1 and 5.2

Please, check the behavior in 5.1 version using an iPhone6 device
https://youtu.be/IraU3kb31xk

And 5.2 version
https://youtu.be/RnLz6X2PUnI

So basically in 5.1 the responsive charts don't replot themselves on orientation change? Why don't we see this delay in 5.1 (although line and bar charts are not resized)?

You can check the xhtml file here: https://mega.nz/#!oAAERDoQ!kFBfrZFbcZyG ... jPB_1k_K-A