This is a bit bizarre.

If someone doesn't have reorder permissions and therefore is getting the disabled form, this is being done by simply hiding table cells with a display: none hardcoded into the TD tag.

This works fine for Chrome, but in IE8, it results in a screwy layout. The first row ends up with that fifth table cell still showing, but dropped out of the row to the next level.

For subsequent rows, the fifth cell layout makes it look like a wrapper around the row. Using the IE Developer Tools, I selected the elements to put borders around them and took some screen shots so you can see what I mean. The screenshots show the table layout and the code that is being highlighted.

I see that in draggableviews.theme.inc, line 182, DV applies the "display: none" straight to the element. I'm wondering though, if it's possible to do the permissions check higher up and get rid of this cell altogether for users without sorting permission.

I don't really care - I'll use one table for the admin and one for the visitor as suggested, but if not for that, I could just use the draggable view with different permissions. Mostly just wanted to throw this out and see if anyone had any simple ideas (i.e. CSS based for or possible JQuery based).

BTW, I'm using this for taxonomy pages as described in #566152: Draggable views for taxonomy/term? - works like a charm aside from this one oddity.

CommentFileSizeAuthor
dv-ie8-layout.png52.09 KBergophobe
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iStryker’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

6.x in now unsupport. Closing this issue.