Opened 4 months ago

Last modified 4 months ago

#14858 new bug

Layouts do not respect vertical MaxSize setting

Reported by: KapiX Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Interface Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


Relevant excerpt:

.AddGrid(0.0f, 0.0f)
    .Add(fMatchCaseCB, 0, 0)
    .Add(fRegexCB, 1, 0)
    .Add(fBackwardsCB, 2, 0)
    .Add(fMatchWordCB, 0, 1)
    .Add(fInSelectionCB, 1, 1)
    .Add(fWrapAroundCB, 2, 1)
//  .SetExplicitMaxSize(BSize(B_SIZE_UNSET, 50)) // doesn't work

Layout with checkboxes in Find/Replace window should have static height and be glued to the bottom of the window. The only resizable components should be text boxes.

No matter what I tried (GroupLayout, GridLayout), it always changed height.

Change History (1)

comment:1 Changed 4 months ago by waddlesplash

Try calling SetExplicitMaxSize on the BView instead of the BGridLayout. It seems the BView version sets fLayoutData->fMaxSize, whereas the BLayout version goes through some sort of a proxy.

Note: See TracTickets for help on using tickets.