<?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%3AScrollWindowUpdateScrollRect</id>
	<title>API:ScrollWindowUpdateScrollRect - 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%3AScrollWindowUpdateScrollRect"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:ScrollWindowUpdateScrollRect&amp;action=history"/>
	<updated>2026-10-18T01:23:19Z</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:ScrollWindowUpdateScrollRect&amp;diff=30684&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:ScrollWindowUpdateScrollRect&amp;diff=30684&amp;oldid=prev"/>
		<updated>2026-10-16T19:48:27Z</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 ScrollWindow&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;
ScrollWindowUpdateScrollRect(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 ScrollWindow.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Call this after adding, removing, resizing, showing or hiding windows inside the ScrollWindow&amp;#039;s scroll child.&lt;br /&gt;
* The content height runs from the top of the scroll child (or of a child window above it) to the bottom of the lowest child window. Only child windows that are shown and have a height greater than 0 are counted.&lt;br /&gt;
* If neither the content height nor the ScrollWindow&amp;#039;s own height has changed since the last measurement, nothing else happens.&lt;br /&gt;
* Otherwise:&lt;br /&gt;
** The scroll bar is shown or enabled when the content is taller than the window, and hidden or disabled when it is not. Whether it is hidden or disabled depends on the ScrollWindow&amp;#039;s definition.&lt;br /&gt;
** The scroll bar&amp;#039;s range is set from the content height and the window height.&lt;br /&gt;
** The scroll child is resized to the content height.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;ScrollWindowUpdateScrollRect&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;ScrollWindowUpdateScrollRect&amp;#039;: Window %s is not a ScrollWindow&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_guildwindow/source/guildwindowtaballiance.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ScrollWindowUpdateScrollRect( &amp;quot;GWAllianceInAllianceAlliedGuilds&amp;quot; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From &amp;lt;code&amp;gt;default/easystem_layouteditor/source/layouteditor.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ScrollWindowUpdateScrollRect( &amp;quot;LayoutEditorWindowControlScreenDialogScrollWindow&amp;quot; )&lt;br /&gt;
ScrollWindowSetOffset( &amp;quot;LayoutEditorWindowControlScreenDialogScrollWindow&amp;quot;, 0 )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:ScrollWindowSetOffset|ScrollWindowSetOffset]]&lt;br /&gt;
* [[API:HorizontalScrollWindowUpdateScrollRect|HorizontalScrollWindowUpdateScrollRect]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>