-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fixed scrollbar disappearing after changing content #2303
Conversation
If content is scrollable it should have scroll bars I think. Otherwise how do people see that the content can scroll. I don’t know if this is an omission in DocTabs, perhaps @stuartmscott can recall? |
The test failures need to be addressed before this can be considered. You’ll see the same issues using |
okay, but what about the design? |
I go with the idea that scrollbars should be used to indicate scrollable content. I don't think we should remove the shadow line as it will not always be scrollable. |
or maybe the scrollbar must have it's own dedicated space, not an overlay |
I agree the scroll bar doesn't look good with DocTabs, and perhaps we should disable the scroll bar in DocTabs. |
AppTabs and DocTabs are indeed different. The app tabbing is designed for a more static layout (the main areas of an app at the beginning of a list, others accessible through popup if screen space is too small). |
I had a look at this and I think DocTabs certainly look better without the scrollbar. If it isn't too much of a hassle to turn it off for that use case, I think it would be useful to implement that. Is there any broader use case for having that option available in a public API? |
If we want this to land in 2.0.4 then we should ignore DocTabs for now, as it does not exist until 2.1... @Jacalz? |
That is a very good point. We can tackle that separately. |
Hey @s77rt we are looking to prep v2.0.4 this week - do you think we could wrap this up (fixing tests etc) and we can review DocTabs as we move to 2.1 after. |
Hi,
|
Yes. When you push that into the PR we can see the change in expected results to confirm what has altered. |
hmm what about mobile tests? |
You have to run the tests with |
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.
Great update thanks. However it looks like one or two of the tests have additional changes.
internal/driver/glfw/testdata/windows_no_hover_outside_object.xml
Outdated
Show resolved
Hide resolved
Apologies some other features have landed so you'll need to merge develop and re-run the tests. |
this change also produces a new test failure: |
I have started to see that test fail as well, so I don't think its your fault. |
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.
Excellent thanks
Are you happy too @Jacalz ? |
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.
Yep :)
FYI for future PRs please don't force push after a review is started as it can make it harder to do subsequent review passes. |
Description:
If a scrollbar content is changed, the whole widget content will be replaced (including the scrolling bars, shadows) with just the new content.
The fix is to change only the content of the scrollbar (keeping other objects untouched: scrollbars, shadows, etc)
Fixes #2268
Checklist: