Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The width of floatedit control displayed incorrectly in dialog #161

Open
machinewu opened this issue Mar 12, 2023 · 0 comments
Open

The width of floatedit control displayed incorrectly in dialog #161

machinewu opened this issue Mar 12, 2023 · 0 comments

Comments

@machinewu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant