Attachments (4)
Change History (36)
by , 16 years ago
Attachment: | filetypes.png added |
---|
comment:1 by , 16 years ago
Component: | - General → Kits/Interface Kit |
---|
comment:2 by , 16 years ago
comment:5 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I just have the time to actually test it, and this bug is still here. Reopening...
comment:6 by , 16 years ago
Happens quite reliably here with DeskCalc under vmware. Not too sure, but it seems it helps (to reproduce) when artificially slowing down the drawing.
comment:7 by , 15 years ago
Version: | R1/pre-alpha1 → R1/Development |
---|
comment:10 by , 12 years ago
Cc: | added |
---|
Will probably weight on this ticket in the future as it occurs in TunePrepper, an app which relies heavily on class BBox and B_FOLLOW_LEFT_RIGHT (seemingly like in the above screen grab attachment:filetypes.png from diver).
comment:11 by , 12 years ago
comment:12 by , 8 years ago
BBoxes leave artifacts as they are resized, in my case it was making the box wider by dragging the window resize wider with a BBox that follows-right (it's also an old style non-layout box). The trouble seems to be in BBox::FrameResized having an off by one error in the invalidation of the lines of the box (possibly due to the screwy BeOS coordinate system where Width isn't pixel width). Artifacts are visible for both plain and fancy border styles (none with no border). My temporary fix is to subclass FrameResized and do an Invalidate() to redraw the whole view.
by , 8 years ago
Attachment: | BBox Resizing Artifacts.png added |
---|
comment:13 by , 8 years ago
patch: | 0 → 1 |
---|
comment:14 by , 8 years ago
patch: | 1 → 0 |
---|
comment:15 by , 8 years ago
Is there an application on the default image (or in HaikuDepot) that easily allows to reproduce the issue?
comment:16 by , 8 years ago
No example programs (at least in all the preferences), I think they all use the Layout system and somehow redraw differently. I'll write up an example program, and try making a patch too if I can recreate it. It could be something like a child BView inside the BBox not updating or being transparent in Haiku but solid colour in BeOS.
comment:17 by , 8 years ago
The trouble is that your computer is too fast! When loaded down with lots of child BViews, the resizing can skip a pixel or more and the invalidation misses some of the old box lines. I've made up an example that slows things down (see attached .cpp file with a FrameResized speed bump) and it's easy to get the glitches to happen when resizing the window.
by , 8 years ago
Attachment: | BBoxGraphicsGlitch.cpp added |
---|
Program for recreating the graphics glitch, by slowing down FrameResized().
comment:18 by , 8 years ago
patch: | 0 → 1 |
---|
comment:19 by , 8 years ago
patch: | 1 → 0 |
---|
comment:20 by , 8 years ago
Status: | reopened → in-progress |
---|
comment:21 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Fixed in hrev51035. The main problem was actually outside of BBox
.
comment:22 by , 8 years ago
Whew, what an obscure fix, I wouldn't have found that without spending lots of time on it. Thanks.
by , 7 years ago
Attachment: | GlitchBBox.gif added |
---|
comment:25 by , 7 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I can still reproduce the problem in hrev51702 (VirtualBox).
comment:26 by , 7 years ago
The problem is present when there is a BTextControl and a method that modifies the inner BTextView is invoke in the example the BTextControl is disabled.
comment:27 by , 7 years ago
Interesting observation. If memory serves, BTextView does something weird when asked for its minimum size. It does text layouting only from within Draw(). And when it needs to know its minimum height for a given width, it only knows that after actually drawing the text at the given width which is not (yet) actually the current width of the control nor may it ever be. This is bad, since it modifies the layout when this method should be "read-only" (except for maybe updating some layout caching variables). Drawing outside of an actual Draw() hook call while there are indeed pending updates may also interfere with the update-cycle.
BTW, this situation was one of the main motivations for starting my own text view framework in HaikuDepot. But that one is not yet complete enough to be an alternative.
comment:29 by , 5 years ago
Cc: | added; removed |
---|
comment:30 by , 5 years ago
My usual BeShare resizing test works perfectly now; hrev53701. Maybe a bit more flickering as borders get redrawn more agressively, but the end result is good.
comment:32 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Likely fixed in hrev53706.
comment:33 by , 5 years ago
Milestone: | R1 → R1/beta2 |
---|
Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone
might be that's what's hapenning in #1849. there might be other similar tickets to find...