Opened 14 years ago
Closed 14 years ago
#6814 closed bug (invalid)
LayoutBug , caused by B_PULSE_NEEDED
Reported by: | cipri | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Interface Kit | Version: | R1/alpha2 |
Keywords: | Layout B_PULSE_NEEDED | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
I have written a little application to demonstrate a Layout-Bug, caused by the command SetFlags( B_PULSE_NEEDED)
write "jam" to compile the program and then start it, and you should be able to see that the layout engine is not working. If you go to the file: "NavigationView.h" and and uncomment SetFlags( B_PULSE_NEEDED) it will work correctly again.
(it is called in the constructor of GroupView, and the layout is contructed with the LayoutBuilder)
Attachments (1)
Change History (2)
by , 14 years ago
Attachment: | LayoutBug-PulseNeeded.zip added |
---|
comment:1 by , 14 years ago
Description: | modified (diff) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
There is no bug, you're using SetFlags() incorrectly. By calling SetFlags(B_PULSE_NEEDED), you're stripping all other flags, including the B_SUPPORTS_LAYOUT that gets set by the base class. What you actually want is SetFlags(Flags() | B_PULSE_NEEDED).