Opened 5 years ago

Last modified 5 years 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:
Platform: All

Description

https://github.com/KapiX/Koder/commit/c592c06a4bfd81aefd21007b60d913b318f7fde4

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

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 by waddlesplash, 5 years ago

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.