My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 139: auto resize to content doesn't seem to work on first use
2 people starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Feb 2009


 
Reported by corelan...@gmail.com, Dec 25, 2008
What steps will reproduce the problem?
1. see code snippets and explanation below 

What is the expected output? What do you see instead?
Auto-sized window, even on first open.

Please use labels and text to provide additional information.

I'm using 1.3.1 and it works for the most part.  I want to open a window
that is sized for the content.  On first use the window is too large, after
that it seems to auto size as I want.  Here's my code that creates the
window.  (content is a var containing messages for the window, elementId is
a var holding an element ID)

	// http://nyromodal.nyrodev.com/
    $.nyroModalManual({
      bgColor: '#BFBFBF', 
      content: content,
      resizeable: true,
      autoSizable: true,
	  css: {
	    bg: {
	      zIndex: 100,
	      position: 'fixed',
	      top: 0,
	      left: 0,
	      height: '100%',
	      width: '100%'
	    },
	    wrapper: {
	      zIndex: 101,
	      position: 'fixed',
	      top: '50%',
	      left: '50%'
	    },
	    wrapper2: {
	    },
	    content: {
		  height: 'auto',
	      overflow: 'auto'
	    },
	    loading: {
	      zIndex: 102,
	      position: 'fixed',
	      top: '50%',
	      left: '50%',
	      marginTop: '-50px',
	      marginLeft: '-50px'
	    }
	  },
      
	  wrap: { // Wrapper div used to style the modal regarding the content type
	    div: '<div class="wrapper"></div>',
	    manual: '<div class="wrapper"></div>'
	  },
	  endRemove: function(){
	  	$('#' + elementId).focus();	
	  }     
    });

I'm sure I overlooked something obvious.  

Thanks,

rws
Jan 27, 2009
Project Member #1 nyro...@gmail.com
what is the modal type?
Could you send your HTML/JS files or a link please?
Feb 5, 2009
Project Member #2 nyro...@gmail.com
(No comment was entered for this change.)
Status: WontFix
May 29, 2009
#3 syx...@gmail.com
I'm having this same issue.  Content is loaded via ajax and the modal window doesn't
resize to fit it.  I have a link that should resize it but it doesn't do anything.  I
change the size of my browser window and the modal window resizes correctly.  I load
the ajax again to change the amount of info in the window.  Now my resize button works.

Powered by Google Project Hosting