Setting control width to half of custom page SurfaceWidth does not work correctly in Inno Setup
问题 I placed a Panel on my custom page and gave it a width of SurfaceWidth . Then I changed its width to SurfaceWidth div 2 . Here's the result: As you can see from the screenshot the new panel's width is definitely not equal to SurfaceWidth div 2 . Why is that so? Here's the code: [Setup] WizardStyle=modern [Code] procedure InitializeWizard(); var Page: TWizardPage; Panel: TPanel; begin Page := CreateCustomPage(wpWelcome, 'Custom wizard page controls', 'TButton and others'); Panel := TPanel