176 {
177 if (!sw)
178 return;
179
181 float f_y,f_h;
182 float amount;
183
184 sw.GetScreenPos(
x,
y);
185 sw.GetScreenSize(
x, y_s);
188
189 float next_pos = f_y + f_h;
190 if (next_pos > (
y + y_s))
191 {
192 amount = sw.GetVScrollPos() + next_pos - (
y + y_s) + 2;
193 sw.VScrollToPos(amount);
194 }
196 {
197 amount = sw.GetVScrollPos() + f_y -
y - 2;
198 sw.VScrollToPos(amount);
199 }
200
201
202 }
float GetFocusedContainerYScreenPos(bool contents=false)
float GetFocusedContainerHeight(bool contents=false)