From f58681564d96e4eb5f0b64b16630bd835d7fe5cc Mon Sep 17 00:00:00 2001 From: Justin Walsh Date: Tue, 30 Sep 2014 09:32:19 +0200 Subject: [PATCH] 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. --- docs/content/guide/compiler.ngdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/guide/compiler.ngdoc b/docs/content/guide/compiler.ngdoc index ba0934ba0..2f464c9d3 100644 --- a/docs/content/guide/compiler.ngdoc +++ b/docs/content/guide/compiler.ngdoc @@ -85,7 +85,9 @@ Here is a directive which makes any element draggable. Notice the `draggable` at position: 'relative', border: '1px solid red', backgroundColor: 'lightgrey', - cursor: 'pointer' + cursor: 'pointer', + display: 'block', + width: '65px' }); element.on('mousedown', function(event) { // Prevent default dragging of selected content