OverlaySplitView.setSidebarWidthFraction

void setSidebarWidthFraction(double fraction)

Sets the preferred sidebar width as a fraction of the total width of self.

The preferred width is additionally limited by adw.overlay_split_view.OverlaySplitView.minSidebarWidth and adw.overlay_split_view.OverlaySplitView.maxSidebarWidth.

The sidebar widget can be allocated with larger width if its own minimum width exceeds the preferred width.

Parameters

fractionthe preferred width fraction