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

padding/size settings in nyroModal v2 #17

Closed
clarkin opened this issue Jan 14, 2011 · 4 comments
Closed

padding/size settings in nyroModal v2 #17

clarkin opened this issue Jan 14, 2011 · 4 comments

Comments

@clarkin
Copy link

clarkin commented Jan 14, 2011

I've recently updated from nyroModal 1.6.2 to v2 and I'm having trouble getting my modal windows to look how they used to.

I can't seem to get a window with 0 padding within it, or the specific size I want. My old code was:
$.nyroModalSettings({
padding: 0,
height: 600,
width: 600
});
I'm trying to do the same with the sizes property but it doesn't seem to work:
$('.nyroModal').nyroModal({
sizes: {
initW: 600,
initH: 600,
w: 600,
h: 600,
minW: 600,
minH: 600,
wMargin: 0,
hMargin: 0
}
});

@nyroDev
Copy link
Owner

nyroDev commented Jan 22, 2011

The padding is now set by CSS, in the margin value of .nyroModalCont.

In the sizes object, only the minW and minH properties can be used to parameter the minumum sizes of the element. The othere values are overwritten by the code.

@clarkin
Copy link
Author

clarkin commented Jan 24, 2011

Cheers, was able to get it working by tinkering with the nyroModal.css.

@nyroDev
Copy link
Owner

nyroDev commented Jan 24, 2011

Great, thanks for letting us know.

@impaler
Copy link

impaler commented Feb 7, 2012

Thankyou, can please remove the sizes options from the official webpage http://nyromodal.nyrodev.com/, this was driving me crazy.

This issue was closed.
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

No branches or pull requests

3 participants