-
1. Re: Modal panel opens in wrong position in IE
oneilltg Apr 14, 2008 5:39 PM (in response to modoc)FWIW, we also have this issue. We don't see it happening in FireFox. It happens regularly with IE, though it usually is too far down in addition to being too far to the right.
-
2. Re: Modal panel opens in wrong position in IE
oneilltg Apr 14, 2008 5:40 PM (in response to modoc)"oneilltg" wrote:
FWIW, we also have this issue. We don't see it happening in FireFox. It happens regularly with IE, though it usually is too far down in addition to being too far to the right.
I should add that we use RichFaces 3.1.4 -
3. Re: Modal panel opens in wrong position in IE
modoc Apr 14, 2008 5:44 PM (in response to modoc)I actually discovered, to my embarrassment, that I was still on 3.1.4 when I posted this. I had upgraded one of my projects to 3.2.0, but not this one.
Try adding a width attribute to the modal tag. For me that fixed it. I think what IE was doing was starting centered with the minimum width needed for fixed elements, and then when I rerendered with a large object (image in my case) in the modal, it expanded to the right and down, instead of expanding equally left and right, like other browsers.
By adding a fixed width, it seems to work for me now. -
4. Re: Modal panel opens in wrong position in IE
oneilltg Apr 14, 2008 7:46 PM (in response to modoc)That didn't seem to change anything for me. I went ahead and added a top and left tag to the rich:modalPanel, and now I have it opening in the top left of the window. Better than off the screen, though not as good as centered.
<rich:modalPanel id="xxxxxx" minHeight="670" minWidth="410"
height="700" width="410" top="10" left="10" > -
5. Re: Modal panel opens in wrong position in IE
nbelaevski Apr 15, 2008 11:51 AM (in response to modoc)Hello,
There are some bugs in the code causing autosized modal panel to fail with centering. I've created a JIRA issue for that: http://jira.jboss.com/jira/browse/RF-3078