# IE centering onResize issue

**URL:** <https://forum.kirupa.com/t/ie-centering-onresize-issue/208238>\
**Category:** flash\
**Created:** [November 26, 2006, 8:35pm UTC](https://forum.kirupa.com/t/ie-centering-onresize-issue/208238 "2006-11-26T20:35:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rynobot](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rynobot](https://forum.kirupa.com/u/rynobot)\
**Post date:** [November 26, 2006, 8:35pm UTC](https://forum.kirupa.com/t/ie-centering-onresize-issue/208238/1 "2006-11-26T20:35:03Z")

</div>

This site works in everything except IE on Windows…  
[http://www.ivanotis.com](http://www.ivanotis.com)

Its kind of hard to explain whats happening unless you play with the site in firefox then try it in IE. It is not vertically centering objects which i have onResize code on. (navigation bar, photos) It also seems to be offsetting the thumbnails - making them unscrollable.

code on navigation bar:

```auto
onClipEvent (load) {
	_x = Stage.width;
	_y = (Stage.height/2)-45;
	speed = 6;
}
onClipEvent (enterFrame) {
	endX = Stage.width-(Stage.width-40);
	endY = (Stage.height/2)-45;
	_x += Math.round((endX-_x)/speed);
	_y += Math.round((endY-_y)/speed);
}

```

code onResize code for photo movie clip:

```auto
_root.picture.onResize = function() {
		this._x = Stage.width-(this._width+100);
		this._y = (Stage.height/2)-(this._height/2);
	};
	Stage.addListener(picture);
	_root.picture.onResize();
}

```

But i’m wondering if I need some sort of Javascript within the HTML??  
…I have never had this problem before - any ideas?

…i hate IE. Ⓜ
