showSecond
Parameters
- self:*PanedWidget
- *PanedWidget
Source
Implementation
pub fn showSecond(self: *PanedWidget) bool {
if (self.should_autofit) {
if (self.init_opts.autofit_first) |autofit| {
self.split_ratio.* = self.getFirstFittedRatio(autofit);
}
}
const ret = self.split_ratio.* < 1.0;
if (ret) {
self.active_side = .second;
self.layout = .{};
} else self.active_side = .none;
return ret;
}