-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Hide vertically hidden ranged items in groups that are not visible #2062
Conversation
@yotamberk Thanks! I would like to test this. Is there an issue this PR fixes? Which example can I use to see the changes? |
@@ -43,8 +43,14 @@ RangeItem.prototype.baseClassName = 'vis-item vis-range'; | |||
*/ | |||
RangeItem.prototype.isVisible = function(range) { | |||
// determine visibility | |||
return (this.data.start < range.end) && (this.data.end > range.start); | |||
}; | |||
var isVisible = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code formatting is broken here. Please check the indent of this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've fixed it
Hey 😊 Have a good day! נשלח מה-iPhone שלי ב-4 בספט׳ 2016, בשעה 11:34, Alexander Wunschik [email protected] כתב/ה:
|
timeline.setGroups(groups); | ||
timeline.setItems(items); | ||
|
||
// $(document).ready(function(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about all this comments. Can you remove them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will do
נשלח מה-iPhone שלי
ב-5 בספט׳ 2016, בשעה 14:16, Alexander Wunschik [email protected] כתב/ה:
In examples/timeline/groups/verticalItemsHide.html:
- editable: true,
- margin: {
item: 10, // minimal margin between items
axis: 5 // minimal margin between items and the axis
- },
- orientation: 'top'
- };
- // create a Timeline
- var container = document.getElementById('mytimeline');
- timeline = new vis.Timeline(container, null, options);
- timeline.setGroups(groups);
- timeline.setItems(items);
+// $(document).ready(function(){
What about all this comments. Can you remove them?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Hey, I've fixed the code so all examples work again. |
Thanks. I'll check and merge it in the next days. |
Great! Thanks! On Sat, Sep 10, 2016 at 12:48 AM, Alexander Wunschik <
|
The files in the
|
1ee2849
to
59d98c7
Compare
Done. Sorry for that... |
I tested a few examples. Looks good! |
@yotamberk Thanks again also for your patience! |
Ofcourse. I'm working on some other features and bug fixes. Going through בתאריך 14 בספט׳ 2016 1:56 לפנה״צ, "Alexander Wunschik" <
|
|
No description provided.