This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-vis
mirror of
https://github.com/jrtechs/vis.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
82
Wiki
Activity
Browse Source
Renamed class `.vis-item-frame` to `.vis-item-overflow`
flowchartTest
jos
9 years ago
parent
cf8c299d11
commit
61108f393e
5 changed files
with
6 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
examples/timeline/18_range_overflow.html
+1
-1
lib/timeline/component/css/item.css
+1
-1
lib/timeline/component/item/BackgroundItem.js
+1
-1
lib/timeline/component/item/RangeItem.js
+1
-1
test/timeline.html
+ 2
- 2
examples/timeline/18_range_overflow.html
View File
@ -11,7 +11,7 @@
font-family: sans-serif;
}
.vis-item .vis-item-
frame
{
.vis-item .vis-item-
overflow
{
overflow: visible;
}
<
/
style
>
@ -22,7 +22,7 @@
In case of ranges being spread over a wide range of time, it can be interesting to have the text contents of the ranges overflow the box. This can be achieved by changing the overflow property of the contents to visible with css:
<
/
p
>
<
pre
>
.vis-item .vis-item-
frame
{
.vis-item .vis-item-
overflow
{
overflow: visible;
}
<
/
pre
>
+ 1
- 1
lib/timeline/component/css/item.css
View File
@ -57,7 +57,7 @@
margin
:
0
;
}
.
vis-item
.
vis-item-
frame
{
.
vis-item
.
vis-item-
overflow
{
position
:
relative
;
width
:
100
%
;
height
:
100
%
;
+ 1
- 1
lib/timeline/component/item/BackgroundItem.js
View File
@ -66,7 +66,7 @@ BackgroundItem.prototype.redraw = function() {
// frame box (to prevent the item contents from overflowing
dom
.
frame
=
document
.
createElement
(
'div'
)
;
dom
.
frame
.
className
=
'vis-item-
frame
'
;
dom
.
frame
.
className
=
'vis-item-
overflow
'
;
dom
.
box
.
appendChild
(
dom
.
frame
)
;
// contents box
+ 1
- 1
lib/timeline/component/item/RangeItem.js
View File
@ -62,7 +62,7 @@ RangeItem.prototype.redraw = function() {
// frame box (to prevent the item contents from overflowing
dom
.
frame
=
document
.
createElement
(
'div'
)
;
dom
.
frame
.
className
=
'vis-item-
frame
'
;
dom
.
frame
.
className
=
'vis-item-
overflow
'
;
dom
.
box
.
appendChild
(
dom
.
frame
)
;
// contents box
+ 1
- 1
test/timeline.html
View File
@ -23,7 +23,7 @@
.vis-timeline .vis-item.vis-range .vis-drag-left,
.vis-timeline .vis-item.vis-range .vis-drag-right {
/*width: 40px;*/
background: rgba(255,
255,255
,0.5);
background: rgba(255,
0,0
,0.5);
}
#visualization .vis-grid.vis-vertical.odd {
Write
Preview
Loading…
Cancel
Save