Skip to content
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 log tab double scrollbars bug #7178

Merged

Conversation

aleksfront
Copy link
Contributor

Before:

double.scrolls.bug.mov

After:

fixed.double.scrolls.bug.mov

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront added bug Something isn't working area/ui area/logs labels Feb 16, 2023
@aleksfront aleksfront added this to the 6.4.0 milestone Feb 16, 2023
@aleksfront aleksfront requested a review from a team as a code owner February 16, 2023 12:31
@aleksfront aleksfront requested review from Iku-turso and ixrock and removed request for a team February 16, 2023 12:31
Comment on lines -10 to -13
// fix for `this.logsElement.scrollTop = this.logsElement.scrollHeight`
// `overflow: overlay` don't allow scroll to the last line
overflow: auto;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this no longer a problem then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any problems for now. It sticks to the bottom line and has proper behavior scrolling to the very top.

pod.logs.proper.behavior.mov

@aleksfront aleksfront merged commit f0b5b42 into fix-empty-pod-logs-tab-content Feb 17, 2023
@aleksfront aleksfront deleted the fix-logs-double-scrollbars-bug branch February 17, 2023 10:13
Nokel81 pushed a commit that referenced this pull request Feb 17, 2023
* Replace logsViewModelInjectable lifecycle
to keyedSingleton

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Await logs view model to instantiate

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove async from instantiating LogTabViewModel

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix LogList overflow (#7178)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

---------

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logs area/ui bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants