floem icon indicating copy to clipboard operation
floem copied to clipboard

re-request scroll style if a refresh is needed

Open jrmoulton opened this issue 1 year ago • 2 comments

jrmoulton avatar Jul 17 '24 23:07 jrmoulton

When does this needed? I'm a bit worried that this could cause infinite loop in unforeseen rare cases.

dzhou121 avatar Jul 18 '24 15:07 dzhou121

Hmm yeah maybe this isn't the best way to fix the issue I was having.

root_view().style(|s| s.class(DropDownClass, |s| s.class(|s| s.class(ScrollClass, |s| s.background(BLUE)))

I have an issue where when the app starts, before user interaction, scroll views that are not children of DropDownClass will have the blue background applied. After clicking the blue background it then resolves to the correct styles. Moving the mouse hover in and out of that scroll view will sporadically cause it to switch to the blue background again until it is clicked (or some other interaction). Adding this change fixes that issue but maybe the actual issue is somewhere else.

jrmoulton avatar Jul 18 '24 16:07 jrmoulton