wangqr / Aegisub

Win64 nightly builds available at GHA artifact, also at following link:
https://ftp.wangqr.tk/aegisub/
Other
799 stars 49 forks source link

The width of floatedit control displayed incorrectly in dialog #161

Open machinewu opened 1 year ago

machinewu commented 1 year ago

The width of floatedit control displayed incorrectly in dialog. The width of the control is too wide. Just tested v3.3.3-x86 and v3.3.3-x64 and v20210713-r9212-x64, both have this problem.

aegisub_3 3 3_floatedit

But the official v3.2.2-x86 can display normally. aegisub_3 2 2_floatedit

Test subtitle:

[Script Info]
; Script generated by Aegisub 3.3.3
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None
PlayResX: 1920
PlayResY: 1080

[Aegisub Project Garbage]
Video File: ?dummy:23.976000:300:1920:1080:49:172:254:
Video AR Value: 1.777778
Video Zoom Percent: 0.500000

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,48,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,template,!_G.aegisub.dialog.display({{class="floatedit",name="test1",min=0,step=0.5,value=20,value=1.5,x=1,y=0,width=1,height=1},{class="intedit",name="test2",min=1,step=1,value=10,value=2,x=0,y=1,width=1,height=1}},{"OK","Cancel"})!
Comment: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,karaoke,123123123

Run Automation -> Apply karaoke template.

Actually, floatedit control is used by aegisub plugin Gradient along clip edge: https://github.com/TypesettingTools/lyger-Aegisub-Scripts/blob/master/macros/lyger.ClipGrad.lua