Opened 13 years ago

Closed 13 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 anevilyak)

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) (3.1 KB ) - added by cipri 13 years ago.

Download all attachments as: .zip

Change History (2)

by cipri, 13 years ago

Attachment: added

comment:1 by anevilyak, 13 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

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).

Note: See TracTickets for help on using tickets.