Active
Project:
Modal Frame API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2011 at 19:01 UTC
Updated:
12 Apr 2016 at 16:20 UTC
Jump to comment: Most recent
I have a somewhat strange behavior happening with the modalframe implementation (through automodal.module). When opening a node (page), the modalframe opens just fine, but it auto scrolls down to the first link within the body. So if I have a 1000 word node, and the link is at the bottom, the window will scroll all the way down to the bottom and highlight that link by placing a small blue border around it.
The project is on a VPN so I can't get you access to it but I have attached a screenshot to help explain what is going on. Any help would be very much appreciated.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| screenshot.jpg | 235.6 KB | esource |
Comments
Comment #1
jonathanhuot commentedI'm impacted with this issue in my own implementation.
+1 to get some help.
Comment #2
mrconnerton commentedI agree this is an issue. I was able to fix it with a small bit of jquery however.
The key is to add an onLoad setting to the modal.
What is the implementation of the auto modal? In my case I am using auto modal so I used its settings alter hook with the following code:
I'm sure you can use this to modify your implementation.
Comment #3
dsnopekI am able to reproduce this bug on the latest 6.x-1.x version! It appears to be finding the first link in the child and focusing on it. I'm using Chrome 29.0.1547.76 on Linux. I haven't had a chance to dig into what's going on. Before doing that, I'd like to establish if this bug is present in the Drupal 7 version too and fix it there first if necessary.
Comment #4
liquidcms commentedyes, this is a bug in D7 version as well.
Comment #5
liquidcms commentedand the code in #2 works to fix this (although its still a bug and that code shouldn't be needed).