145 {
146 if ( entry )
147 {
149 float x_s, y_s;
150 float x_l, y_l;
151
152 Widget root = entry.GetRoot();
153 Widget first_child = root.GetParent().GetChildren();
154 Widget last_child = first_child;
155 while ( last_child )
156 {
157 if ( last_child.GetSibling() )
158 last_child = last_child.GetSibling();
159 else
160 break;
161 }
162
163 root.GetParent().Update();
164 root.Update();
165
168
169 float bottom_pos =
y + y_s;
170
171 root.GetScreenPos( x_l, y_l );
172 root.GetScreenSize( x_s, y_s );
173
174 if ( root == first_child )
175 {
177 }
178 else if ( root == last_child )
179 {
181 }
182 else if ( y_l + y_s >= bottom_pos )
183 {
185 }
187 {
189 }
190 }
191 }
ScrollWidget m_ServerListScroller