<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AHorizontalScrollWindowUpdateScrollRect</id>
	<title>API:HorizontalScrollWindowUpdateScrollRect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AHorizontalScrollWindowUpdateScrollRect"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:HorizontalScrollWindowUpdateScrollRect&amp;action=history"/>
	<updated>2026-10-17T11:51:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:HorizontalScrollWindowUpdateScrollRect&amp;diff=30501&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:HorizontalScrollWindowUpdateScrollRect&amp;diff=30501&amp;oldid=prev"/>
		<updated>2026-10-16T19:45:34Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=ScrollWindow}}&lt;br /&gt;
Measures a HorizontalScrollWindow&amp;#039;s content again and updates its scroll range and scroll bar.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HorizontalScrollWindowUpdateScrollRect(scrollWindowName)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;scrollWindowName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of the HorizontalScrollWindow.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* This is the horizontal counterpart of [[API:ScrollWindowUpdateScrollRect|ScrollWindowUpdateScrollRect]], with two differences in how the content is measured:&lt;br /&gt;
** The content width runs from the left edge of the leftmost child window to the right edge of the rightmost one. The scroll child&amp;#039;s own position is not included.&lt;br /&gt;
** Every child window with a width greater than 0 is counted, whether it is shown or not.&lt;br /&gt;
* If neither the content width nor the window&amp;#039;s own width has changed since the last measurement, nothing else happens. Otherwise the scroll bar is shown or enabled when the content is wider than the window (hidden or disabled when it is not), its range is updated, and the scroll child is resized to the content width.&lt;br /&gt;
* The stock UI never calls this function.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
The error messages always use the name &amp;lt;code&amp;gt;HorizontalScrollWindowSetOffset&amp;lt;/code&amp;gt;:&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;HorizontalScrollWindowSetOffset&amp;#039;: Window %s does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;HorizontalScrollWindowSetOffset&amp;#039;: Window %s is not a HorizontalScrollWindow&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
A minimal example built from the signature:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
HorizontalScrollWindowUpdateScrollRect( &amp;quot;MyHScrollWindow&amp;quot; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:HorizontalScrollWindowSetOffset|HorizontalScrollWindowSetOffset]]&lt;br /&gt;
* [[API:ScrollWindowUpdateScrollRect|ScrollWindowUpdateScrollRect]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>