fix: set the margin of the panel when setting anchor gap
This commit is contained in:
parent
2d2cac5f87
commit
a4c567a954
1 changed files with 6 additions and 0 deletions
|
|
@ -426,6 +426,12 @@ impl Page {
|
|||
|
||||
panel_config.anchor_gap = enabled;
|
||||
|
||||
if enabled {
|
||||
panel_config.margin = 4;
|
||||
} else {
|
||||
panel_config.margin = 0;
|
||||
}
|
||||
|
||||
_ = panel_config.write_entry(helper);
|
||||
}
|
||||
Message::PanelSize(size) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue