mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 07:15:19 +01:00
[GH-ISSUE #1244] Popups in bar's end shift right on certain events #6000
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#6000
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @postsolar on GitHub (Nov 20, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1244
Describe the bug
Popups in bar's end shift a certain constant amount of pixels on certain events, such as volume change. Maybe the root cause is respective button changing its width.
To reproduce
Steps to reproduce the behavior:
volumeandclockto bar endExpected behavior
Popup remains static
System information:
Configuration
Config
Styles
Additional context
Screenshots
https://github.com/user-attachments/assets/dfcf9966-eaf5-4eca-8535-09f7046cfaa9
style.css
config.json
@JakeStanger commented on GitHub (Nov 20, 2025):
Looks like that's what is happening to me. The popup will re-center itself on the button if it changes size or position. I'm not sure what the best solution to that would be?
@postsolar commented on GitHub (Nov 20, 2025):
Right after posting this I realized it could be fixed with
😅
But I mean this wasn't required before, so feel free to decide if this issue should be closed or kept open.
I fed this problem to Claude-Code, it suggested
but I didn't feel like compiling or thinking too much about it.
@postsolar commented on GitHub (Nov 20, 2025):
TBH I'm not that sure about the re-centering. If this was the case, wouldn't the popup be shifting back on button's width decrease, too? On my screen recording it does not. It only goes one way, once, until closing the popup resets it.
@JakeStanger commented on GitHub (Nov 20, 2025):
You might be right. I think the GTK3 version handled the logic the other way around - the popup was repositioned to the button if the popup changed size (which the GTK4 version does still do), but didn't reposition if the button moved.
The additional logic is handled by GTK since it's a native popup, whereas in GTK3 it was a separate window and margin hacks. I'm not sure why it wouldn't shift back but I'd put it down to GTK trying to be clever.
I'll need to double-check that, but if so anchoring the popup to specific geometry is probably sensible. I'd also class it as a regression if so.