fix(compact): size the window to the strip instead of a tuned constant
compactH was 158px, "tuned so the compact entry strip fits in a single row". A constant tuned against a layout stops being true the moment the layout changes, and this one outlived a strip that had since shrunk — leaving about 70px of empty window under the fields. The frontend now measures what it rendered and asks for that height, watched by a ResizeObserver so a strip that wraps at a narrow width is followed too. The topbar is added as its declared h-8 rather than measured, since it is fixed. Bounded in the backend: a measurement of zero — a layout not yet painted — must not collapse the window, and the call is ignored unless compact is on so nothing can shrink the normal window. Rounded to whole pixels so a sub-pixel reflow cannot start a resize loop.
This commit is contained in:
Vendored
+2
@@ -988,6 +988,8 @@ export function SetClublogMostWantedEnabled(arg1:boolean):Promise<void>;
|
||||
|
||||
export function SetClusterAutoConnect(arg1:boolean):Promise<void>;
|
||||
|
||||
export function SetCompactHeight(arg1:number):Promise<void>;
|
||||
|
||||
export function SetCompactMode(arg1:boolean):Promise<void>;
|
||||
|
||||
export function SetDVKLabel(arg1:number,arg2:string):Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user