From 077125a30a48c372e67aa58f94504750f9ce24fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thierry=20Fran=C3=A7ois?= Date: Tue, 2 Dec 2014 17:05:01 +0200 Subject: [PATCH] Drag handle icon is always visible --- css/GridFieldExtensions.css | 18 +++++++++++++++--- templates/GridFieldOrderableRowsDragHandle.ss | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/css/GridFieldExtensions.css b/css/GridFieldExtensions.css index 5c6252c..0145e37 100644 --- a/css/GridFieldExtensions.css +++ b/css/GridFieldExtensions.css @@ -117,17 +117,29 @@ } .ss-gridfield-orderable .col-reorder { + position: relative; padding: 0 !important; width: 16px !important; } .ss-gridfield-orderable .col-reorder .handle { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; cursor: move; - display: none; } -.ss-gridfield-orderable tbody tr:hover .col-reorder .handle { - display: block; +.ss-gridfield-orderable .col-reorder .handle .icon { + position: absolute; + top: 50%; + left: 50%; + width: 5px; + height: 11px; + margin: -5px 0 0 -2px; + background-image: url('../../framework/thirdparty/jquery-ui-themes/smoothness/images/ui-icons_222222_256x240.png'); + background-position: -5px -227px; } .ss-gridfield-orderhelper { diff --git a/templates/GridFieldOrderableRowsDragHandle.ss b/templates/GridFieldOrderableRowsDragHandle.ss index 4899111..9702f53 100644 --- a/templates/GridFieldOrderableRowsDragHandle.ss +++ b/templates/GridFieldOrderableRowsDragHandle.ss @@ -1 +1 @@ - +