def METHOD_NAME(self, doRefresh=False, doFocus=False):
    maxy = 0
    selected = None
    for i in range(len(self._wList)):
        iwidth, iheight = self._wList[i].GetSize()
        xa, ya = self.CalcScrolledPosition((0, maxy))
        self._wList[i].SetPosition((xa, ya))
        if self.IsWidgetSelectedByContext(i):
            selected = self._wList[i]
        maxy += iheight
    self.SetVirtualSize((1, maxy))
    cwidth, cheight = self.GetVirtualSize()
    if selected:
        self.ScrollChildIntoView(selected)
        # selected.SetFocus()
    elif doFocus:
        self.SetFocus()
    for i in range(len(self._wList)):
        iwidth, iheight = self._wList[i].GetSize()
        self._wList[i].SetSize((cwidth, iheight))
        if doRefresh is True:
            self._wList[i].Refresh()
        self.itemsHeight = iheight
    # This is needed as under GTK wx does not emit scroll up/scroll down
    # events, see issue #1909 for more info
    if 'wxGTK' in wx.PlatformInfo:
        self.SetScrollRate(0, self.itemsHeight)