Opened 9 years ago

Closed 9 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:
Has a Patch: no 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)

LayoutBug-PulseNeeded.zip (3.1 KB ) - added by cipri 9 years ago.

Download all attachments as: .zip

Change History (2)

by cipri, 9 years ago

Attachment: LayoutBug-PulseNeeded.zip added

comment:1 by anevilyak, 9 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.