Timeline group height when group has no events in view

Community Driven Extensions Project
Post Reply
Jeneryx
Posts: 16
Joined: 10 May 2013, 11:32
Location: UK

14 Jul 2014, 17:59

Hi there,

I've encountered a problem with the timeline group height logic, which also appears in the showcase example "Style customization and i18n support" and additionally my application.

To replicate issue: If you zoom in so that the top 2 have no events but the bottom four do, the events on the bottom four lines will become dis-aligned with the group row they are meant to be on. Seems the javascript doesn't take into account a minimal height for a group row when there are no events in view.

Additionally, (can't be shown on the showcase as it always loads in view) if you load the timeline when timeline events are a few days in the past but your looking at now +5 for example, the label for the group appears in the top title row. If you have a lot of groups without events, all the labels appear in a pile on the first row of the timeline.

Any suggestions how i can get around this?

Thanks
PrimeFaces 5.0, PrimeFaces Extensions 2.0.0 , JSF 2.2.5, JEE 7 Glassfish 3.1.2.2, Netbeans 8.0, Windows 7

stephan.wenders
Posts: 27
Joined: 11 Nov 2013, 09:38
Location: Duisburg, Germany

22 Aug 2014, 11:09

Hi there,

i am having the same problem and hoped that someone answers on this subject.

The timeline is one of the most important widgtes in one of our planning tools,
so that we are at the moment not able to move to primefaces extensions 2.0 (primefaces 5) !

Hope that my reply will put some new light on the problem !

Best regards
Stephan Wenders

Primefaces 6.2.x
Wildfly 15
JSF 2.3
JDK 8
Solaris 11, Windows 10

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

22 Aug 2014, 11:44

It's a 'problem' in the original timeline javascript that is used in PrimeFaces Extensions. Check out http://almende.github.io/chap-links-lib ... obile.html and zoom... bottom row will 'collapse' to if you zoom enough. So please file an issue there

stephan.wenders
Posts: 27
Joined: 11 Nov 2013, 09:38
Location: Duisburg, Germany

22 Aug 2014, 15:16

I filed the issue and got the following answer:
In the successor of this library, vis.js, this issue has been solved.
Stephan Wenders

Primefaces 6.2.x
Wildfly 15
JSF 2.3
JDK 8
Solaris 11, Windows 10

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

22 Aug 2014, 22:12

I filed the issue and got the following answer:
In the successor of this library, vis.js, this issue has been solved.
Yes, that's right. But the successor vis.js doesn't have all features yet which we currently use. I suggest to wait a little bit. In the meantime you can limit zooming as here http://www.primefaces.org/showcase-ext/ ... tRange.jsf Simple try it.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

stephan.wenders
Posts: 27
Joined: 11 Nov 2013, 09:38
Location: Duisburg, Germany

23 Aug 2014, 15:37

Tranks for your advice, i think i have to wait for the next release. In my case it is not a problem of zooming, but of moving the timeline to a range where one or more groups don't have an event.
Stephan Wenders

Primefaces 6.2.x
Wildfly 15
JSF 2.3
JDK 8
Solaris 11, Windows 10

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

23 Aug 2014, 21:17

Yes, I'm aware of this issue. I will observe vis.js time to time. We will also have a PRO support soon.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests