As wxCollapsiblePane doesn't use sizers for layout (and while this could be changed for the generic version, it still wouldn't fix the problem for the native one), default InformFirstDirection() implementation forwarding it to the window sizer doesn't work for it and we need to explicitly let the contents of wxCollapsiblePane know about the available size.