Skip to content
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/timeline/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,14 @@ <h3 id="items">Items</h3>
Types 'box' and 'point' need a start date, the types 'range' and 'background' needs both a start and end date.
</td>
</tr>
<tr>
<td>limitSize</td>
<td>Boolean</td>
<td>no</td>
<td>Some browsers cannot handle very large DIVs so by default range DIVs can be truncated outside the visible area.
Setting this to <code>false</code> will cause the creation of full-size DIVs.
</td>
</tr>
<tr class='toggle collapsible' onclick="toggleTable('itemOptionTable', 'itemEditable', this);">
<td><span parent="itemEditable" class="right-caret"></span> editable</td>
<td>Boolean or Object</td>
Expand Down
3 changes: 2 additions & 1 deletion lib/timeline/component/item/RangeItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ RangeItem.prototype.repositionX = function(limitSize) {
var contentWidth;

// limit the width of the range, as browsers cannot draw very wide divs
if (limitSize === undefined || limitSize === true) {
// unless limitSize: false is explicitly set in item data
if (this.data.limitSize !== false && (limitSize === undefined || limitSize === true)) {
if (start < -parentWidth) {
start = -parentWidth;
}
Expand Down
1 change: 1 addition & 0 deletions lib/timeline/optionsTimeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ let allOptions = {
range: { 'boolean': bool, 'undefined': 'undefined'},
__type__: { 'boolean': bool, object}
},
limitSize: {'boolean': bool},
locale:{string},
locales:{
__any__: {any},
Expand Down