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

Tooltip does not request redraw when hovered #2671

Open
4 tasks done
thorn132 opened this issue Nov 18, 2024 · 1 comment · May be fixed by #2675
Open
4 tasks done

Tooltip does not request redraw when hovered #2671

thorn132 opened this issue Nov 18, 2024 · 1 comment · May be fixed by #2675
Labels
bug Something isn't working

Comments

@thorn132
Copy link

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Tooltips do not appear if their content does not request redraw on hover.

use iced::widget::tooltip;
use iced::{application, Element, Task};

fn main() -> iced::Result {
    application("Tooltip", update, view).run()
}

fn update(_: &mut (), _: ()) -> Task<()> {
    Task::none()
}

fn view<'a>(_: &'a ()) -> Element<'a, ()> {
    tooltip("FooBar", "FizzBuzz", tooltip::Position::Bottom).into()
}

What is the expected behavior?

The tooltip should appear regardless of if its content requests redraw. Adding shell.request_redraw() to Tooltip::update produces this behavior.

Version

master

Operating System

Windows

Do you have any log output?

No response

@thorn132 thorn132 added the bug Something isn't working label Nov 18, 2024
@thorn132
Copy link
Author

scrollable::scroll_to also does not reliably cause a redraw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant