Doesn't center on screen resize.

  // Perform the resize animation.
  $('.modalframe').animate(animationOptions, 'fast', function() {
    // Proceed only if the dialog still exists.
    if (self.isObject(self.iframe.$element) && self.isObject(self.iframe.$container)) {
      // Resize the iframe element and container.
      $('.modalframe').width(dialogSize.width).height(dialogSize.height);
      self.iframe.$container.width(frameSize.width).height(frameSize.height);
      self.iframe.$element.width(frameSize.width).height(frameSize.height);

      // Update the dialog size so that UI internals are aware of the change.
      self.iframe.$container.dialog('option', {width: dialogSize.width, height: dialogSize.height});
    }
  });

Comments

OliverColeman’s picture

Status: Active » Closed (works as designed)

I'm 99% sure this issue should be posted on the Modal Frame API project. modalframe_menu doesn't have anything to do with the placement or positioning of the frames, Modal Frame API handles this.

keesee’s picture

JS isn't my strong suit, but I posted it here because with modals generate with both modal api or the automodal api the modal is centered on screen resize. With this modal they are neither resized or centered. This behavior is only occuring with item where I use this module.

Thanks for the quick reply
--
J.

keesee’s picture

After doing some trouble shooting, I found this this behavior only occurs if a height x width has been set. for the menu item.