151 {
152 if ( entry )
153 {
155 float x_s, y_s;
156 float x_l, y_l;
157
158 Widget root = entry.GetRoot();
159 Widget first_child = root.GetParent().GetChildren();
160 Widget last_child = first_child;
161 while ( last_child )
162 {
163 if ( last_child.GetSibling() )
164 last_child = last_child.GetSibling();
165 else
166 break;
167 }
168
169 root.GetParent().Update();
170 root.Update();
171
174
175 float bottom_pos =
y + y_s;
176
177 root.GetScreenPos( x_l, y_l );
178 root.GetScreenSize( x_s, y_s );
179
180 if ( root == first_child )
181 {
183 }
184 else if ( root == last_child )
185 {
187 }
188 else if ( y_l + y_s >= bottom_pos )
189 {
191 }
193 {
195 }
196 }
197 }
ScrollWidget m_ServerListScroller