Skip to content

Commit f586815

Browse files
Justin Walshbtford
Justin Walsh
authored andcommitted
docs(guide/compiler): change span to block element in draggable example
The draggable example does not work as expected in Chrome (37.0.2062.124 m). The span disappears when dragged beyond what appears to be a small area. Changing the span to a block element (with a width of 65px) resolves this issue. An alternative solution would be to change the span to a div.
1 parent d23f585 commit f586815

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/content/guide/compiler.ngdoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ Here is a directive which makes any element draggable. Notice the `draggable` at
8585
position: 'relative',
8686
border: '1px solid red',
8787
backgroundColor: 'lightgrey',
88-
cursor: 'pointer'
88+
cursor: 'pointer',
89+
display: 'block',
90+
width: '65px'
8991
});
9092
element.on('mousedown', function(event) {
9193
// Prevent default dragging of selected content

0 commit comments

Comments
 (0)