The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

JS style scrolll problem

Forums » Dev.Opera » General Web Development Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

8. November 2011, 22:41:25

toritripang

Posts: 1

JS style scrolll problem

If i try to change position dynamically to 'absolute' in scrollable div - suddenly appears a main scrollbar.
WinXPsp3, opera 11.52

example:
http://jsbin.com/owoseh/2/#preview
<!DOCTYPE HTML>
<html>
<body>
<div style="position:relative;height:200px">
	<div style="overflow:scroll;height:200px">
		<div style="height:10000px">some</div>
		<div onclick="this.style.cssText='position:absolute;top:0;'">CLICK</div>
	</div>
</div>
</body>
</html>

17. November 2011, 21:43:25

Frenzie

Posts: 15571

Interesting. I imagine you should report it as a bug.
The DnD Sanctuary — a safety net for My Opera's demise.

Forums » Dev.Opera » General Web Development Discussions