Forum Support

Shape 5
March 28, 2024, 09:02:14 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: s5box for login scrolls to top of page and opens modal in middle of window where  (Read 672 times)
elliottben
Jr. Member
**
Offline Offline

Posts: 39



« on: October 13, 2017, 10:24:27 AM »

We are using the s5box for our login box. This seems to be a recent issue as previously the s5 modal was working fine.

The expected behavior is that when a user clicks the link to open the modal it will appear in the middle of the window. What happens now (only on pages taller than the browser window) is when a user clicks the link to open the modal it jumps to the top of the page and then opens the modal in the middle of the page (based on the height of the full page, not just visible part of the page). This results in a modal located outside of the user's view and they have to scroll down the page to find the login box. You can see this behavior at: http://slswhitestone.org

Click the link at the bottom right "Teacher Login" (screen shot attached)

This previously didn't happen, the modal would appear centered in the visible area of the current browser page. Is there something we might have changed that is causing this behavior and how can we fix it?

Thanks
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: October 13, 2017, 11:01:17 AM »

Hello,

Please add the following to your custom.css file and this should fix the issue:


Code:
body #colorbox {
position:fixed !important;
top:150px !important;}
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.