xray-rails
xray-rails copied to clipboard
Two partials that lay 1:1 over each other doesn't allow to select the overlaying partial
We have a _fields.html.haml partial that is visually laying 1:1 above a _form.html.haml partial (this means they both have exactly the same dimensions and position).
The problem here is that xray-rails doesn't allow to click on the _fields.html.haml partial. Take a look at my screenshot: I'm hovering in the Chrome Inspector over the _fields partial, but it's not visible on the site (it's under _form).

I'd would be great if this would be fixed somehow. Thank you.
This is something I've thought a lot about but can't decide on an elegant way to handle. Would love your input. Some ideas:
- Click and drag a box to "dismiss" it out of the way of what it obscures
- Custom context menu that lists stacked boxes beneath the cursor
- "send to back" button
- 3d rotation a la Firefox's 3d inspector (looks cool but I've always regarded this as gimmicky)
If you have any other ideas, I'm all ears.
I would prefer a dropdown which allows to select the desired partial. The 3d rotation would be a nice gimmick, too, but most of the time the easiest solution is the best one. :wink:
Any update on this? Would be really useful, it's bugging me several times per day.
Same as the other issue - this isn't a problem for me yet so I haven't been motivated to address it. Xray's code is somewhat obscure but well commented so I like to think it's accessible - fork away!