-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix app menu calculation for random size of the right header #10890
Conversation
Couldn't we just make sure the calculation is always done properly? |
As @juliushaertl told me adding icons afterwards is working. It's just for the initial loading. |
Yes, but I don't like having hardcoded values. We shouldn't have to do that :) |
92543cd
to
78d9d56
Compare
I have no idea how we could do that properly. The issue is that the two divs in the header (left/right) are resized when some icons are added. Do you have an idea how we could properly calculate the icon count every time @weeman1337 @skjnldsv ? |
Would be easier if there is a explicit API for adding removing stuff. Maybe we should go for a fix now and improve the header bar in the future (followup)? |
@skjnldsv @juliushaertl can we get a decision here. I have to agree with @weeman1337 to get this in now and fix properly for 15. We are in RC so no huge changes please 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM then :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
JSUnit fails:
|
@juliushaertl Ping ;) |
90bc047
to
ffb3a5d
Compare
Tests should be fixed, let's see. |
Signed-off-by: Julius Härtl <[email protected]>
ffb3a5d
to
a696c01
Compare
Seems good right @juliushaertl ? |
Yep, remaining failures are unrelated. 😉 |
@juliushaertl Mind to backport this? |
Fixes #10857
This PR will ensure that at least 210px of space is kept available for the right header icons. The issue in #10857 was that the number of icons to show was calculated before all right icons where loaded. This leads to different behaviour when resizing the window/loading an app that doesn't have a search.