Closed AtkinsSJ closed 3 weeks ago
Since this is marked as a good first issue, I'll be happy to see what I can do with it.
I hate to ask on what seems like such a straightforward issue but rather than holding things up because I can't figure it out:
1.) I tried this on the master branch and I don't see the behavior of the very narrow thumb. I wanted to insure I could reproduce the issue so I could test my potential fix. I mean I've already come up with a fix but since I can't reproduce the behavior on master I don't trust my fix, of course.
2.) On the inspector dialog I only see DomTree and AccessibilityTree. But I checked--I've got the latest code. I did look at the build but I can't find anything to indicate a special switch to enable the stylesheet inspector.
Since I don't see the stylesheet inspector I'm a little bit leery of thinking I'm running my tests correctly.
2.) On the inspector dialog I only see DomTree and AccessibilityTree. But I checked--I've got the latest code. I did look at the build but I can't find anything to indicate a special switch to enable the stylesheet inspector.
Since I don't see the stylesheet inspector I'm a little bit leery of thinking I'm running my tests correctly.
Oh, sorry - that's not been merged yet, I only submitted a PR for it yesterday. #1168 :sweat_smile:
The reduced test case I included here should be enough to test it though. I just tried it on master and it's still happening for me.
Ah! Thanks!
@AtkinsSJ I've submitted a PR for this but I believe I've bollixed up the PR. Sorry for the extra grief for what should be a trivial change. If you (or someone else) can give me some guidance as to how I can make the PR right that'd be greatly appreciated. And sorry for not reading the submission guidelines more closely.
Thanks for the assistance @AtkinsSJ. I've almost got it there but for some reason I've still managed to include one commit that shouldn't be included (so four files that I didn't change show up in the PR.) Thing is I can't see the commit that it appears to be in the git log. Regardless thanks for your patience and your help! I'm going to take one more crack at fixing this up.
Discovered while working on the stylesheet inspector, with some files that are arranged on a single long line. Here's a screenshot with the window super narrow to exaggerate the issue:
That small vertical line above Computed Style is the horizontal scrollbar's thumb. It's unclickable.
When the window is larger, the thumb is large enough to interact with, but when scrolled fully to the left, part of the thumb is off the edge of the viewport:
Reduced test case
Note that the `margin: 0;` on the `` is important for the "scrollbar thumb goes off screen" issue. ```htmlGiving the thumb a minimum size should be a case of modifying the calculations here: https://github.com/LadybirdBrowser/ladybird/blob/bc20e3ac6c15c159f9901bd3babe3326450c5e3a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp#L266
The "off the screen" issue might be something else.