Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed positioning of the Box #684

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gabrieljenik
Copy link

"Top", "Left", "Right", "Bottom" positioning settings were not taken into account as "top" and "left" vars were not used in $box.css() assignment. (Now on line #648).

On the other hand, scrollTop or scrollLeft isn't needed as fixed / aboslute positioning is set by CSS "position" attribute.

"Top", "Left", "Right", "Bottom" positioning settings were not taken into account as "top" and "left" vars were not used in $box.css() assignment. (Now on line jackmoore#648).

On the other hand, scrollTop or scrollLeft isn't needed as fixed / aboslute positioning is set by CSS "position" attribute.
@aik099
Copy link

aik099 commented Jan 13, 2015

Does this affect behavior of ColorBox (e.g. fixes some display problem)?

Finished last fix.
@gabrieljenik
Copy link
Author

Yes. Without this fix, positioning settings were not taken into account.

@aik099
Copy link

aik099 commented Jan 14, 2015

I thought ColorBox is always positioned in the center of the screen and if I use mouse wheel to scroll main page then it still stays in the center.

@gabrieljenik
Copy link
Author

No. You should be able to control position.
Look at positionning settings on main project page http://www.jacklmoore.com/colorbox/

@aik099
Copy link

aik099 commented Jan 14, 2015

It's really strange, that whole repositioning system wasn't working all the time as you say.

@gabrieljenik
Copy link
Author

It seems it is not one of the most used features... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants