Skip to content

Commit 76bc8a4

Browse files
FiveTechSoftclaude
andcommitted
layout(win): widen IDE bar so the palette button row fits (nBarH=Max(200,Int(200*nUIScale)), drop the -60 trim)
⚠️ KNOWN ISSUE: with the bigger bar the process self-exits (clean, code 0, ~33MB alloc spike) a few seconds after startup — somewhere in the palette/layout path. Committed at the owner's request; needs a fix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c0547f5 commit 76bc8a4

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

source/hbbuilder_win.prg

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,7 @@ function Main()
107107
// Bar must fit: title (~30) + menu (~25) + 2 stacked toolbars (~80) + palette
108108
// tabs+buttons (~75) ≈ 210. Windows can swallow ~25px of menu height during
109109
// SW_SHOWMAXIMIZED, so we ask for a bit more than we strictly need.
110-
nBarH := Max( 170, Int( 200 * nUIScale ) ) // title + menu + 2 toolbars + palette
111-
// On 1920-wide-and-larger screens the bar has ~60px of slack — trim it.
112-
// (NB: removing this -60 / enlarging the bar triggers a ~33MB alloc + clean
113-
// process exit a few seconds in — to be investigated; do not touch yet.)
114-
if nUIScale >= 1.0
115-
nBarH -= 60
116-
endif
110+
nBarH := Max( 200, Int( 200 * nUIScale ) ) // title + menu + 2 toolbars + palette
117111
// Inspector: wide enough for the 230-px property/event name column plus a
118112
// usable value column. Grows with screen size.
119113
nInsW := Max( 330, Max( Int( 360 * nUIScale ), Int( nScreenW * 0.21 ) ) )

0 commit comments

Comments
 (0)