// ==UserScript==

// @name         livedoorReader fix vertical scroll for Opera
// @namespace    http://bmky.net/
// @include      http://reader.livedoor.com/reader/
// ==/UserScript==

style_updater("left_container", function(){
	setStyle(this,{
		display : State.show_left ? "block": "none",
		width   : State.leftpane_width   + "px",
		height  : ( State.container_height - 16 ) + "px"
	});
}._try());
style_updater("subs_container", function(){
	var h = State.container_height - $("subs_tools").offsetHeight - 16;
	setStyle(this,{
		display : State.show_left ? "block": "none",
		width   : State.leftpane_width + "px",
		height  : h + "px"
	})
}._try());
style_updater("right_container", function(){
	setStyle(this,{
		 height : ( State.container_height - 16 ) + "px",
		 width  : document.body.offsetWidth - State.leftpane_width + "px"
	});
}._try());

setStyle( $( "right_container" ) ,{
	 borderLeftWidth : "0px",
	 overflow  : "auto"
} );
setStyle( $( "subs_container" ) ,{
	 overflow  : "auto"
} );

