New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Day view ALIGN_LEFT stategy doesn't work with intersecting entries #85
Comments
Unfortunately not. The algorithm that deals with overlapping entries does not take the alignment property into consideration. |
Could it be that all you need is a way to "disable" the resolution of overlapping entries and have more manual control? Same for issue #86 ? |
I think it should be ok. As I understand, you want to provide an additional API for this manual control. Could you roughly say, what will this API look like? And what about drag-and-drop visualization, will it follow the rules defined by this new API? |
On DayViewBase I would have a method like "setEnableOverlappingEntries(true)". And yes, while dragging an entry that setting would also be applied. |
I have added the property autoLayout to DayViewBase, which means it is also available for the ResourceCalendarView. There the value is set to false, so CalendarFX will no longer try to place entries with overlapping time intervals in separate columns. Please let me know if this solves this issue. |
As I noticed while commenting the other issue (#86), the |
As I wrote in the #86 issue, I came up with another solution for this problem, so I'm closing this issue. |
Inside the entry view factory the Entry1 entry view has set specific pref width and alignment strategy to
ALIGN_LEFT
:The Entry2 entry has default alignment strategy
EntryViewBase.AlignmentStrategy.FILL
When the Entry1 and Entry2 intersect and the Entry1 start time is later than the Entry2 start time, then the Entry1 is no longer on the left side of the day view. Please look at the image below:
I would expect that after setting the
EntryViewBase.AlignmentStrategy.ALIGN_LEFT
, the entry view always shows up on the left side of the day view. Is it possible?The text was updated successfully, but these errors were encountered: