mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
fix(popup): incorrect pos when resolution changes
Popups will now instantly reposition themselves to be correctly placed on resolution change. This includes orientation and scale changes. Fixes #610
This commit is contained in:
parent
5001295d7c
commit
2aa55d8d66
4 changed files with 47 additions and 11 deletions
|
@ -273,7 +273,12 @@ impl Bar {
|
|||
}
|
||||
|
||||
// popup ignores module location so can bodge this for now
|
||||
let popup = Popup::new(&info!(ModuleLocation::Left), output_size, config.popup_gap);
|
||||
let popup = Popup::new(
|
||||
self.ironbar.clone(),
|
||||
&info!(ModuleLocation::Left),
|
||||
output_size,
|
||||
config.popup_gap,
|
||||
);
|
||||
let popup = Rc::new(popup);
|
||||
|
||||
if let Some(modules) = config.start {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue