Awea
Awea

Reputation: 3183

Nyromodal manual mode ignore parameters

I'm currently use nyromodal in a website but I have some trouble to set the sizes. Actually, I do something like this :

$.nmManual(
  '#agenda-edit',{              
    resizable: true,
sizes: {    // Size information
  w: 500,   // Initial width
  h: 500    // Initial height
}
  }
);

But It won't work, any idea ?

Upvotes: 0

Views: 1283

Answers (3)

Algorithm
Algorithm

Reputation: 149

use minH and minW like

sizes: {
 minH : 500,
 minW : 500
}

Upvotes: 1

Awea
Awea

Reputation: 3183

To change the width of the nyromodal window just change this css line :

.nyroModalCont {
    width: 800px;

By your value

Upvotes: 0

macgyver
macgyver

Reputation: 1279

I made some tests using $.nmManual with a DOM selector. NyroModal will set the max dimensions of the DOM element according to the css class selector .nyroModalDom. So you could set width and heigth through the css class selector .nyroModalDom but then nyroModal doesn't perform any resizing of the DOM element after a window resizing.

Upvotes: 0

Related Questions